Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Miguel Lopez
Krita
Commits
2b099bef
Commit
2b099bef
authored
Sep 12, 2019
by
Mathias Wein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix loading of reference image settings
There was a typo that loaded saturation from stored opacity.
parent
cb4306bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
libs/ui/KisReferenceImage.cpp
libs/ui/KisReferenceImage.cpp
+1
-1
No files found.
libs/ui/KisReferenceImage.cpp
View file @
2b099bef
...
...
@@ -309,7 +309,7 @@ KisReferenceImage * KisReferenceImage::fromXml(const QDomElement &elem)
qreal
opacity
=
KisDomUtils
::
toDouble
(
elem
.
attribute
(
"opacity"
,
"1"
));
reference
->
setTransparency
(
1.0
-
opacity
);
qreal
saturation
=
KisDomUtils
::
toDouble
(
elem
.
attribute
(
"
opacity
"
,
"1"
));
qreal
saturation
=
KisDomUtils
::
toDouble
(
elem
.
attribute
(
"
saturation
"
,
"1"
));
reference
->
setSaturation
(
saturation
);
return
reference
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment