Code

preserving icc colors in all tabs of fill&stroke
authorJucaBlues <JucaBlues@users.sourceforge.net>
Fri, 14 Aug 2009 04:21:17 +0000 (04:21 +0000)
committerJucaBlues <JucaBlues@users.sourceforge.net>
Fri, 14 Aug 2009 04:21:17 +0000 (04:21 +0000)
src/widgets/sp-color-scales.cpp

index cf06247e7393906f9b90276bde679c8fdf907655..a09a3a2edc5a572b6448c5d3e0a597091c7dd6b9 100644 (file)
@@ -10,6 +10,7 @@
 #include <glibmm/i18n.h>
 #include "../dialogs/dialog-events.h"
 #include "sp-color-scales.h"
+#include "svg/svg-icc-color.h"
 
 #define CSC_CHANNEL_R (1 << 0)
 #define CSC_CHANNEL_G (1 << 1)
@@ -241,6 +242,10 @@ void ColorScales::_recalcColor( gboolean changing )
             g_warning ("file %s: line %d: Illegal color selector mode %d", __FILE__, __LINE__, _mode);
             break;
         }
+
+        /* Preserve ICC */
+        color.icc = _color.icc ? new SVGICCColor(*_color.icc) : 0;
+
         _updateInternals( color, alpha, _dragging );
     }
     else