Code

fix 1777084
authorbuliabyak <buliabyak@users.sourceforge.net>
Mon, 20 Aug 2007 01:38:47 +0000 (01:38 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Mon, 20 Aug 2007 01:38:47 +0000 (01:38 +0000)
src/dialogs/stroke-style.cpp
src/ui/widget/selected-style.cpp

index fd43d374c9dd1a044dfb6a1be32a02e55a2cacf1..c7e8d8989287631654fc70d93b3de813fedc3b1d 100644 (file)
@@ -470,6 +470,13 @@ sp_stroke_style_paint_changed(SPPaintSelector *psel, SPWidget *spw)
             if (items) {
                     SPCSSAttr *css = sp_repr_css_attr_new ();
                     sp_repr_css_unset_property (css, "stroke");
+                    sp_repr_css_unset_property (css, "stroke-opacity");
+                    sp_repr_css_unset_property (css, "stroke-width");
+                    sp_repr_css_unset_property (css, "stroke-miterlimit");
+                    sp_repr_css_unset_property (css, "stroke-linejoin");
+                    sp_repr_css_unset_property (css, "stroke-linecap");
+                    sp_repr_css_unset_property (css, "stroke-dashoffset");
+                    sp_repr_css_unset_property (css, "stroke-dasharray");
 
                     sp_desktop_set_style (desktop, css);
                     sp_repr_css_attr_unref (css);
index fcd56ad441333185317f9b4999230e5bc45d22d7..e2ac69b4c44ded970fb243d4deb3336e517ed929 100644 (file)
@@ -480,6 +480,13 @@ void SelectedStyle::on_fill_unset() {
 void SelectedStyle::on_stroke_unset() {
     SPCSSAttr *css = sp_repr_css_attr_new ();
     sp_repr_css_unset_property (css, "stroke");
+    sp_repr_css_unset_property (css, "stroke-opacity");
+    sp_repr_css_unset_property (css, "stroke-width");
+    sp_repr_css_unset_property (css, "stroke-miterlimit");
+    sp_repr_css_unset_property (css, "stroke-linejoin");
+    sp_repr_css_unset_property (css, "stroke-linecap");
+    sp_repr_css_unset_property (css, "stroke-dashoffset");
+    sp_repr_css_unset_property (css, "stroke-dasharray");
     sp_desktop_set_style (_desktop, css, true, true);
     sp_repr_css_attr_unref (css);
     sp_document_done (sp_desktop_document(_desktop), SP_VERB_DIALOG_FILL_STROKE,