From: buliabyak Date: Sun, 21 Jun 2009 17:14:47 +0000 (+0000) Subject: fix reading style from prefs for tools X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a45770df516aba8dc20e471b92f3c9c38b0deb95;p=inkscape.git fix reading style from prefs for tools --- diff --git a/src/desktop-style.cpp b/src/desktop-style.cpp index d5144e9f0..c8782051b 100644 --- a/src/desktop-style.cpp +++ b/src/desktop-style.cpp @@ -344,7 +344,7 @@ sp_desktop_apply_style_tool(SPDesktop *desktop, Inkscape::XML::Node *repr, Glib: if (prefs->getBool(tool_path + "/usecurrent") && css_current) { sp_repr_css_set(repr, css_current, "style"); } else { - SPCSSAttr *css = prefs->getStyle(tool_path + "/style"); + SPCSSAttr *css = prefs->getInheritedStyle(tool_path + "/style"); sp_repr_css_set(repr, css, "style"); sp_repr_css_attr_unref(css); }