From ce635b32fc9b5fa8efb13784198cda1dd5a26cb5 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Mon, 20 Aug 2007 01:38:47 +0000 Subject: fix 1777084 (bzr r3545) --- src/dialogs/stroke-style.cpp | 7 +++++++ src/ui/widget/selected-style.cpp | 7 +++++++ 2 files changed, 14 insertions(+) (limited to 'src') 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, -- cgit v1.2.3