diff options
| author | Felipe Corr??a da Silva Sanches <juca@members.fsf.org> | 2009-08-14 04:21:17 +0000 |
|---|---|---|
| committer | JucaBlues <JucaBlues@users.sourceforge.net> | 2009-08-14 04:21:17 +0000 |
| commit | 61ed908098ec4a07eae3308920111522a555c60a (patch) | |
| tree | f5efbbf6a840d14a0e013f109ffd4b4d6dbf51e6 /src | |
| parent | a quick workaround in order to avoid some invalid names for icc profiles. (diff) | |
| download | inkscape-61ed908098ec4a07eae3308920111522a555c60a.tar.gz inkscape-61ed908098ec4a07eae3308920111522a555c60a.zip | |
preserving icc colors in all tabs of fill&stroke
(bzr r8050.1.11)
Diffstat (limited to 'src')
| -rw-r--r-- | src/widgets/sp-color-scales.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 <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 |
