diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2012-05-08 06:37:38 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2012-05-08 06:37:38 +0000 |
| commit | 6f85c122e081723e51e8064dd1c71dcce1e76315 (patch) | |
| tree | 478956ccd8fd9d0e475d2cb4002c81920f5b03f7 /src/gradient-context.cpp | |
| parent | Fix for 986446 : Refactor toolbox into tool specific files (diff) | |
| download | inkscape-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.cpp | 6 |
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); } |
