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/widgets/fill-style.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/widgets/fill-style.cpp')
| -rw-r--r-- | src/widgets/fill-style.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/widgets/fill-style.cpp b/src/widgets/fill-style.cpp index d9d818643..fe24d0165 100644 --- a/src/widgets/fill-style.cpp +++ b/src/widgets/fill-style.cpp @@ -566,15 +566,19 @@ void FillNStroke::updateFromPaint() } if (!vector) { - SPGradient *gr = sp_gradient_vector_for_object( document, desktop, reinterpret_cast<SPObject*>(i->data), kind == FILL, createSwatch ); + SPGradient *gr = sp_gradient_vector_for_object( document, + desktop, + reinterpret_cast<SPObject*>(i->data), + (kind == FILL) ? Inkscape::FOR_FILL : Inkscape::FOR_STROKE, + createSwatch ); if ( gr && createSwatch ) { gr->setSwatch(); } sp_item_set_gradient(SP_ITEM(i->data), gr, - gradient_type, kind == FILL); + gradient_type, (kind == FILL) ? Inkscape::FOR_FILL : Inkscape::FOR_STROKE); } else { - sp_item_set_gradient(SP_ITEM(i->data), vector, gradient_type, kind == FILL); + sp_item_set_gradient(SP_ITEM(i->data), vector, gradient_type, (kind == FILL) ? Inkscape::FOR_FILL : Inkscape::FOR_STROKE); } } } else { @@ -587,7 +591,7 @@ void FillNStroke::updateFromPaint() sp_repr_css_change_recursive(reinterpret_cast<SPObject*>(i->data)->getRepr(), css, "style"); } - SPGradient *gr = sp_item_set_gradient(SP_ITEM(i->data), vector, gradient_type, kind == FILL); + SPGradient *gr = sp_item_set_gradient(SP_ITEM(i->data), vector, gradient_type, (kind == FILL) ? Inkscape::FOR_FILL : Inkscape::FOR_STROKE); psel->pushAttrsToGradient( gr ); } } |
