Code

* Apply style to selection also when applying it to defaults
authormderezynski <mderezynski@users.sourceforge.net>
Mon, 22 May 2006 10:39:10 +0000 (10:39 +0000)
committermderezynski <mderezynski@users.sourceforge.net>
Mon, 22 May 2006 10:39:10 +0000 (10:39 +0000)
src/widgets/toolbox.cpp

index cbccf929429a090781813765921d3d259d78a2ac..2d2cd801bb14c5c7b1bc5393b838cdbc6f0ca9ca 100644 (file)
@@ -3114,11 +3114,8 @@ namespace {
         {
             sp_repr_css_change (inkscape_get_repr (INKSCAPE, "tools.text"), css, "style");
         }
-        else
-        {
-            sp_desktop_set_style (desktop, css, true, true);
-        }
 
+        sp_desktop_set_style (desktop, css, true, true);
         sp_document_done (sp_desktop_document (SP_ACTIVE_DESKTOP));
         sp_repr_css_attr_unref (css);
     }
@@ -3158,11 +3155,8 @@ namespace {
         {
             sp_repr_css_change (inkscape_get_repr (INKSCAPE, "tools.text"), css, "style");
         }
-        else
-        {
-            sp_desktop_set_style (desktop, css, true, true);
-        }
 
+        sp_desktop_set_style (desktop, css, true, true);
         sp_document_done (sp_desktop_document (SP_ACTIVE_DESKTOP));
         sp_repr_css_attr_unref (css);
     }