summaryrefslogtreecommitdiffstats
path: root/src/ui/selected-color.cpp
diff options
context:
space:
mode:
authorTomasz Boczkowski <penginsbacon@gmail.com>2015-05-17 11:33:31 +0000
committerTomasz Boczkowski <penginsbacon@gmail.com>2015-05-17 11:33:31 +0000
commit279bb517e59386cc3a5b299cafb78c0eb81cbedd (patch)
treeca41cf3d44100d7fb589f35c1ea2c267fcf6ba09 /src/ui/selected-color.cpp
parentfixed: color scales - extra row in RGB mode (diff)
downloadinkscape-279bb517e59386cc3a5b299cafb78c0eb81cbedd.tar.gz
inkscape-279bb517e59386cc3a5b299cafb78c0eb81cbedd.zip
fixed: color scales - updating color when switched from undefined
(bzr r14059.1.29)
Diffstat (limited to 'src/ui/selected-color.cpp')
-rw-r--r--src/ui/selected-color.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/ui/selected-color.cpp b/src/ui/selected-color.cpp
index 6573129d3..8c37ee7e0 100644
--- a/src/ui/selected-color.cpp
+++ b/src/ui/selected-color.cpp
@@ -75,7 +75,7 @@ guint32 SelectedColor::value() const
void SelectedColor::setColorAlpha(SPColor const &color, gfloat alpha, bool emit_signal)
{
#ifdef DUMP_CHANGE_INFO
- g_message("SelectedColor::setColorAlpha( this=%p, %f, %f, %f, %s, %f, %s) in %s", this, color.v.c[0], color.v.c[1], color.v.c[2], (color.icc?color.icc->colorProfile.c_str():"<null>"), alpha, (emit?"YES":"no"), FOO_NAME(_csel));
+ g_message("SelectedColor::setColorAlpha( this=%p, %f, %f, %f, %s, %f, %s)", this, color.v.c[0], color.v.c[1], color.v.c[2], (color.icc?color.icc->colorProfile.c_str():"<null>"), alpha, (emit_signal?"YES":"no"));
#endif
g_return_if_fail( ( 0.0 <= alpha ) && ( alpha <= 1.0 ) );
@@ -84,11 +84,10 @@ void SelectedColor::setColorAlpha(SPColor const &color, gfloat alpha, bool emit_
}
#ifdef DUMP_CHANGE_INFO
- g_message("---- SelectedColor::setColorAlpha virgin:%s !close:%s alpha is:%s in %s",
+ g_message("---- SelectedColor::setColorAlpha virgin:%s !close:%s alpha is:%s",
(_virgin?"YES":"no"),
- (!color.isClose( _color, _epsilon )?"YES":"no"),
- ((fabs((_alpha) - (alpha)) >= _epsilon )?"YES":"no"),
- FOO_NAME(_csel)
+ (!color.isClose( _color, _EPSILON )?"YES":"no"),
+ ((fabs((_alpha) - (alpha)) >= _EPSILON )?"YES":"no")
);
#endif
@@ -113,8 +112,8 @@ void SelectedColor::setColorAlpha(SPColor const &color, gfloat alpha, bool emit_
#ifdef DUMP_CHANGE_INFO
} else {
- g_message("++++ SelectedColor::setColorAlpha color:%08x ==> _color:%08X isClose:%s in %s", color.toRGBA32(alpha), _color.toRGBA32(_alpha),
- (color.isClose( _color, _epsilon )?"YES":"no"), FOO_NAME(_csel));
+ g_message("++++ SelectedColor::setColorAlpha color:%08x ==> _color:%08X isClose:%s", color.toRGBA32(alpha), _color.toRGBA32(_alpha),
+ (color.isClose( _color, _EPSILON )?"YES":"no"));
#endif
}
}