diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-04-11 13:49:28 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-04-11 13:49:28 +0000 |
| commit | 4862708928a1a9d0252ec89a4925f575be904012 (patch) | |
| tree | 578b9ec74ce1eb906fd704a8737da1db3f32ba07 /src | |
| parent | Fix feTile rendering bug with Krzysztof's help. (diff) | |
| download | inkscape-4862708928a1a9d0252ec89a4925f575be904012.tar.gz inkscape-4862708928a1a9d0252ec89a4925f575be904012.zip | |
Partialy fix bug #172137. commented in bug
(bzr r14778)
Diffstat (limited to 'src')
| -rw-r--r-- | src/live_effects/lpe-patternalongpath.cpp | 7 | ||||
| -rw-r--r-- | src/live_effects/lpe-patternalongpath.h | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/live_effects/lpe-patternalongpath.cpp b/src/live_effects/lpe-patternalongpath.cpp index 9397d848f..911c410f9 100644 --- a/src/live_effects/lpe-patternalongpath.cpp +++ b/src/live_effects/lpe-patternalongpath.cpp @@ -259,9 +259,16 @@ LPEPatternAlongPath::transform_multiply(Geom::Affine const& postmul, bool set) // overriding the Effect class default method, disabling transform forwarding to the parameters. // only take translations into account + // Check if proportional stroke-width scaling is on + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); + bool transform_stroke = prefs ? prefs->getBool("/options/transform/stroke", true) : true; + if (transform_stroke && !scale_y_rel) { + prop_scale.param_set_value(prop_scale * ((postmul.expansionX() + postmul.expansionY()) / 2)); + } if (postmul.isTranslation()) { pattern.param_transform_multiply(postmul, set); } + sp_lpe_item_update_patheffect (sp_lpe_item, false, true); } void diff --git a/src/live_effects/lpe-patternalongpath.h b/src/live_effects/lpe-patternalongpath.h index 3b9a17ab0..3d7fc02bc 100644 --- a/src/live_effects/lpe-patternalongpath.h +++ b/src/live_effects/lpe-patternalongpath.h @@ -42,7 +42,7 @@ public: virtual void transform_multiply(Geom::Affine const& postmul, bool set); void addCanvasIndicators(SPLPEItem const */*lpeitem*/, std::vector<Geom::PathVector> &hp_vec); - + virtual void addKnotHolderEntities(KnotHolder * knotholder, SPDesktop * desktop, SPItem * item); PathParam pattern; |
