summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/selected-style.cpp
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-09-23 02:19:28 +0000
committerJohn Smith <john.smith7545@yahoo.com>2012-09-23 02:19:28 +0000
commita01a3fa9d658218f3afbe5ab9922deb9c3ce38be (patch)
tree695eae486fd113e903abd7353155f5abd183bf2b /src/ui/widget/selected-style.cpp
parentFix for 172222 : Move direct to specified layer (diff)
downloadinkscape-a01a3fa9d658218f3afbe5ab9922deb9c3ce38be.tar.gz
inkscape-a01a3fa9d658218f3afbe5ab9922deb9c3ce38be.zip
Fix for 367548 : Invert doesnt work on objects with gradients
(bzr r11696)
Diffstat (limited to 'src/ui/widget/selected-style.cpp')
-rw-r--r--src/ui/widget/selected-style.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/widget/selected-style.cpp b/src/ui/widget/selected-style.cpp
index b3c4fbdcd..a4313f677 100644
--- a/src/ui/widget/selected-style.cpp
+++ b/src/ui/widget/selected-style.cpp
@@ -600,9 +600,9 @@ void SelectedStyle::on_fill_invert() {
guint32 color = _thisselected[SS_FILL];
gchar c[64];
if (_mode[SS_FILL] == SS_LGRADIENT || _mode[SS_FILL] == SS_RGRADIENT) {
- g_message("Gradient");
sp_gradient_invert_selected_gradients(_desktop, Inkscape::FOR_FILL);
return;
+
}
if (_mode[SS_FILL] != SS_COLOR) return;
@@ -625,8 +625,7 @@ void SelectedStyle::on_stroke_invert() {
SPCSSAttr *css = sp_repr_css_attr_new ();
guint32 color = _thisselected[SS_STROKE];
gchar c[64];
- if (_mode[SS_FILL] == SS_LGRADIENT || _mode[SS_FILL] == SS_RGRADIENT) {
- g_message("Gradient");
+ if (_mode[SS_STROKE] == SS_LGRADIENT || _mode[SS_STROKE] == SS_RGRADIENT) {
sp_gradient_invert_selected_gradients(_desktop, Inkscape::FOR_STROKE);
return;
}