summaryrefslogtreecommitdiffstats
path: root/src/gradient-context.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2012-05-08 06:37:38 +0000
committerJon A. Cruz <jon@joncruz.org>2012-05-08 06:37:38 +0000
commit6f85c122e081723e51e8064dd1c71dcce1e76315 (patch)
tree478956ccd8fd9d0e475d2cb4002c81920f5b03f7 /src/gradient-context.cpp
parentFix for 986446 : Refactor toolbox into tool specific files (diff)
downloadinkscape-6f85c122e081723e51e8064dd1c71dcce1e76315.tar.gz
inkscape-6f85c122e081723e51e8064dd1c71dcce1e76315.zip
Follow-up conversion from bool.
(bzr r11347)
Diffstat (limited to 'src/gradient-context.cpp')
-rw-r--r--src/gradient-context.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gradient-context.cpp b/src/gradient-context.cpp
index aa669846c..1689e5353 100644
--- a/src/gradient-context.cpp
+++ b/src/gradient-context.cpp
@@ -548,11 +548,11 @@ sp_gradient_context_root_handler(SPEventContext *event_context, GdkEvent *event)
for (GSList const* i = selection->itemList(); i != NULL; i = i->next) {
SPItem *item = SP_ITEM(i->data);
SPGradientType new_type = (SPGradientType) prefs->getInt("/tools/gradient/newgradient", SP_GRADIENT_TYPE_LINEAR);
- Inkscape::PaintTarget new_fill = (prefs->getInt("/tools/gradient/newfillorstroke", 1) != 0) ? Inkscape::FOR_FILL : Inkscape::FOR_STROKE;
+ Inkscape::PaintTarget fsmode = (prefs->getInt("/tools/gradient/newfillorstroke", 1) != 0) ? Inkscape::FOR_FILL : Inkscape::FOR_STROKE;
- SPGradient *vector = sp_gradient_vector_for_object(sp_desktop_document(desktop), desktop, item, new_fill);
+ SPGradient *vector = sp_gradient_vector_for_object(sp_desktop_document(desktop), desktop, item, fsmode);
- SPGradient *priv = sp_item_set_gradient(item, vector, new_type, new_fill);
+ SPGradient *priv = sp_item_set_gradient(item, vector, new_type, fsmode);
sp_gradient_reset_to_userspace(priv, item);
}