Code

use the same colors for clippath and mark helper paths as used in outline mode
authorbuliabyak <buliabyak@users.sourceforge.net>
Tue, 18 Mar 2008 08:04:37 +0000 (08:04 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Tue, 18 Mar 2008 08:04:37 +0000 (08:04 +0000)
src/selection-chemistry.cpp

index 2fdf04ca2e2ac356854be69f81b35267c8b86f2f..eaf68e09ed908f33475e974f7b99b31c8407ead4 100644 (file)
@@ -2168,7 +2168,10 @@ void sp_selection_edit_clip_or_mask(SPDesktop * dt, bool clip)
                         shape_editor->set_item(SP_ITEM(child));
                         Inkscape::NodePath::Path *np = shape_editor->get_nodepath();
                         if (np) {
-                            np->helperpath_rgba = clip ? 0x0000ffff : 0x800080ff;
+                            // take colors from prefs (same as used in outline mode)
+                            np->helperpath_rgba = clip ? 
+                                prefs_get_int_attribute("options.wireframecolors", "clips", 0x00ff00ff) : 
+                                prefs_get_int_attribute("options.wireframecolors", "masks", 0x0000ffff);
                             np->helperpath_width = 1.0;
                             sp_nodepath_show_helperpath(np, true);
                         }