diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2010-07-02 08:18:10 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2010-07-02 08:18:10 +0000 |
| commit | 43519ed46697c28f90abe47d3b480f9bc9372c6e (patch) | |
| tree | 4ad64b4e8c595322b5b5743aaaeeedd5c287cff1 /src/widgets/fill-style.cpp | |
| parent | Do not remove color-profile elements during vacuum defs. Fixes bug #444225. (diff) | |
| download | inkscape-43519ed46697c28f90abe47d3b480f9bc9372c6e.tar.gz inkscape-43519ed46697c28f90abe47d3b480f9bc9372c6e.zip | |
Rough pass of Fill-n-Stroke swatch conversion.
(bzr r9553)
Diffstat (limited to 'src/widgets/fill-style.cpp')
| -rw-r--r-- | src/widgets/fill-style.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/widgets/fill-style.cpp b/src/widgets/fill-style.cpp index 5a7256d83..f1342f3de 100644 --- a/src/widgets/fill-style.cpp +++ b/src/widgets/fill-style.cpp @@ -556,8 +556,12 @@ void FillNStroke::updateFromPaint() } if (!vector) { + SPGradient *gr = sp_gradient_vector_for_object(document, desktop, SP_OBJECT(i->data), kind == FILL); + if ( gr && (psel->mode == SPPaintSelector::MODE_SWATCH) ) { + gr->setSwatch(); + } sp_item_set_gradient(SP_ITEM(i->data), - sp_gradient_vector_for_object(document, desktop, SP_OBJECT(i->data), kind == FILL), + gr, gradient_type, kind == FILL); } else { sp_item_set_gradient(SP_ITEM(i->data), vector, gradient_type, kind == FILL); |
