Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Office
Calligra
Commits
a3f047df
Commit
a3f047df
authored
Jul 08, 2011
by
Sven Langkamp
Browse files
fix loading of curve when old and new data is in the file
BUG:276677
parent
a9784a79
Changes
1
Hide whitespace changes
Inline
Side-by-side
krita/plugins/paintops/libpaintop/kis_curve_option.cpp
View file @
a3f047df
...
...
@@ -98,11 +98,13 @@ void KisCurveOption::readNamedOptionSetting(const QString& prefix, const KisProp
if
(
sensor
)
setSensor
(
sensor
);
bool
customCurve
=
setting
->
getBool
(
"Custom"
+
prefix
,
false
);
if
(
customCurve
)
m_sensor
->
setCurve
(
setting
->
getCubicCurve
(
"Curve"
+
prefix
));
// only load the old curve format if the curve wasn't saved by the sensor
if
(
!
setting
->
getString
(
prefix
+
"Sensor"
).
contains
(
"curve"
))
{
bool
customCurve
=
setting
->
getBool
(
"Custom"
+
prefix
,
false
);
if
(
customCurve
)
m_sensor
->
setCurve
(
setting
->
getCubicCurve
(
"Curve"
+
prefix
));
}
m_value
=
setting
->
getDouble
(
m_name
+
"Value"
,
m_maxValue
);
m_useCurve
=
setting
->
getBool
(
m_name
+
"UseCurve"
,
true
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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