summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/selected-style.cpp
diff options
context:
space:
mode:
authorTavmjong Bah <tavmjong@free.fr>2016-11-09 08:10:41 +0000
committertavmjong-free <tavmjong@free.fr>2016-11-09 08:10:41 +0000
commitb82a7738f807351244b03be2723af0220af46c34 (patch)
treea9bc3d0bdce0a5b0dd3c69f8a2e03971b2a92179 /src/ui/widget/selected-style.cpp
parentImprove mesh handling in Fill and Stroke dialog. (diff)
downloadinkscape-b82a7738f807351244b03be2723af0220af46c34.tar.gz
inkscape-b82a7738f807351244b03be2723af0220af46c34.zip
Enable swapping of fill and stroke when one is a mesh.
(bzr r15230)
Diffstat (limited to 'src/ui/widget/selected-style.cpp')
-rw-r--r--src/ui/widget/selected-style.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/widget/selected-style.cpp b/src/ui/widget/selected-style.cpp
index ebc6fe919..fa7a83732 100644
--- a/src/ui/widget/selected-style.cpp
+++ b/src/ui/widget/selected-style.cpp
@@ -800,6 +800,9 @@ void SelectedStyle::on_fillstroke_swap() {
break;
case SS_LGRADIENT:
case SS_RGRADIENT:
+#ifdef WITH_MESH
+ case SS_MGRADIENT:
+#endif
case SS_PATTERN:
sp_repr_css_set_property (css, "stroke", _paintserver_id[SS_FILL].c_str());
break;
@@ -822,6 +825,9 @@ void SelectedStyle::on_fillstroke_swap() {
break;
case SS_LGRADIENT:
case SS_RGRADIENT:
+#ifdef WITH_MESH
+ case SS_MGRADIENT:
+#endif
case SS_PATTERN:
sp_repr_css_set_property (css, "fill", _paintserver_id[SS_STROKE].c_str());
break;