diff options
Diffstat (limited to 'src/desktop-style.cpp')
| -rw-r--r-- | src/desktop-style.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/desktop-style.cpp b/src/desktop-style.cpp index 427ca31fe..666044bd6 100644 --- a/src/desktop-style.cpp +++ b/src/desktop-style.cpp @@ -368,10 +368,12 @@ sp_desktop_get_color_tool(SPDesktop *desktop, Glib::ustring const &tool, bool is guint32 r = 0; // if there's no color, return black if (has_color) *has_color = false; - if (prefs->getBool(tool + "/usecurrent")) { + bool styleFromCurrent = prefs->getBool(tool + "/usecurrent"); + if (styleFromCurrent) { css = sp_desktop_get_style(desktop, true); } else { css = prefs->getStyle(tool + "/style"); + Inkscape::GC::anchor(css); } if (css) { |
