From c93d95c4718e4eba12292ac21e65507d9659b870 Mon Sep 17 00:00:00 2001 From: JucaBlues Date: Fri, 14 Aug 2009 04:21:17 +0000 Subject: [PATCH] preserving icc colors in all tabs of fill&stroke --- src/widgets/sp-color-scales.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/widgets/sp-color-scales.cpp b/src/widgets/sp-color-scales.cpp index cf06247e7..a09a3a2ed 100644 --- a/src/widgets/sp-color-scales.cpp +++ b/src/widgets/sp-color-scales.cpp @@ -10,6 +10,7 @@ #include #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 -- 2.30.2