Code

fix reading style from prefs for tools
authorbuliabyak <buliabyak@users.sourceforge.net>
Sun, 21 Jun 2009 17:14:47 +0000 (17:14 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sun, 21 Jun 2009 17:14:47 +0000 (17:14 +0000)
src/desktop-style.cpp

index d5144e9f02864221af25f972350b344f754cdfad..c8782051bef6772088cef4d5b985488a00f16381 100644 (file)
@@ -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);
     }