summaryrefslogtreecommitdiffstats
path: root/src/widgets/fill-style.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2010-07-02 08:18:10 +0000
committerJon A. Cruz <jon@joncruz.org>2010-07-02 08:18:10 +0000
commit43519ed46697c28f90abe47d3b480f9bc9372c6e (patch)
tree4ad64b4e8c595322b5b5743aaaeeedd5c287cff1 /src/widgets/fill-style.cpp
parentDo not remove color-profile elements during vacuum defs. Fixes bug #444225. (diff)
downloadinkscape-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.cpp6
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);