diff options
| author | Liam P. White <inkscapebrony@gmail.com> | 2014-08-04 16:19:41 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebrony@gmail.com> | 2014-08-04 16:19:41 +0000 |
| commit | 63b2f0cd146c1abbb9c93977273f2b3cf457d8a4 (patch) | |
| tree | 4b623f8e0bd6dd0f76ee0750eed42990cc362112 /src/sp-item.cpp | |
| parent | Fixed some redraw problems moving nodes in bspline mode (diff) | |
| parent | Allow editing of fill and stroke patterns simultaneously. Fixes #601336, #604... (diff) | |
| download | inkscape-63b2f0cd146c1abbb9c93977273f2b3cf457d8a4.tar.gz inkscape-63b2f0cd146c1abbb9c93977273f2b3cf457d8a4.zip | |
Update to trunk r13489
(bzr r13341.1.116)
Diffstat (limited to 'src/sp-item.cpp')
| -rw-r--r-- | src/sp-item.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sp-item.cpp b/src/sp-item.cpp index 6c2ada9d7..780845deb 100644 --- a/src/sp-item.cpp +++ b/src/sp-item.cpp @@ -1109,9 +1109,10 @@ void SPItem::invoke_hide(unsigned key) // Adjusters -void SPItem::adjust_pattern (Geom::Affine const &postmul, bool set) +void SPItem::adjust_pattern(Geom::Affine const &postmul, bool set, PatternTransform pt) { - if (style && (style->fill.isPaintserver())) { + bool fill = (pt == TRANSFORM_FILL || pt == TRANSFORM_BOTH); + if (fill && style && (style->fill.isPaintserver())) { SPObject *server = style->getFillPaintServer(); if ( SP_IS_PATTERN(server) ) { SPPattern *pattern = sp_pattern_clone_if_necessary(this, SP_PATTERN(server), "fill"); @@ -1119,7 +1120,8 @@ void SPItem::adjust_pattern (Geom::Affine const &postmul, bool set) } } - if (style && (style->stroke.isPaintserver())) { + bool stroke = (pt == TRANSFORM_STROKE || pt == TRANSFORM_BOTH); + if (stroke && style && (style->stroke.isPaintserver())) { SPObject *server = style->getStrokePaintServer(); if ( SP_IS_PATTERN(server) ) { SPPattern *pattern = sp_pattern_clone_if_necessary(this, SP_PATTERN(server), "stroke"); |
