From: buliabyak Date: Mon, 20 Aug 2007 01:38:47 +0000 (+0000) Subject: fix 1777084 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ea7ff7f4ce41f6d5df49b2bc4bfb75a511ab4cfc;p=inkscape.git fix 1777084 --- diff --git a/src/dialogs/stroke-style.cpp b/src/dialogs/stroke-style.cpp index fd43d374c..c7e8d8989 100644 --- a/src/dialogs/stroke-style.cpp +++ b/src/dialogs/stroke-style.cpp @@ -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); diff --git a/src/ui/widget/selected-style.cpp b/src/ui/widget/selected-style.cpp index fcd56ad44..e2ac69b4c 100644 --- a/src/ui/widget/selected-style.cpp +++ b/src/ui/widget/selected-style.cpp @@ -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,