diff options
| author | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-08-13 15:15:47 +0000 |
|---|---|---|
| committer | Jabier Arraiza <jabier.arraiza@marker.es> | 2017-08-13 15:15:47 +0000 |
| commit | d0930c9bda63f8500b83df8dec3766379a0d60d4 (patch) | |
| tree | 9a05dbcac6b98850bdcbef9082d7293de6906bb7 /src/live_effects/lpe-bendpath.cpp | |
| parent | Merge branch 'jabiertxof/inkscape-inkscape.dev_power_clip_and_mask' (diff) | |
| download | inkscape-d0930c9bda63f8500b83df8dec3766379a0d60d4.tar.gz inkscape-d0930c9bda63f8500b83df8dec3766379a0d60d4.zip | |
Attemp to fix bug 1707899, retain shapes color. Also now retain shape previous width
Diffstat (limited to 'src/live_effects/lpe-bendpath.cpp')
| -rw-r--r-- | src/live_effects/lpe-bendpath.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/live_effects/lpe-bendpath.cpp b/src/live_effects/lpe-bendpath.cpp index 363356cac..5c1953fda 100644 --- a/src/live_effects/lpe-bendpath.cpp +++ b/src/live_effects/lpe-bendpath.cpp @@ -157,10 +157,10 @@ LPEBendPath::addCanvasIndicators(SPLPEItem const */*lpeitem*/, std::vector<Geom: } void -LPEBendPath::addKnotHolderEntities(KnotHolder *knotholder, SPDesktop *desktop, SPItem *item) +LPEBendPath::addKnotHolderEntities(KnotHolder *knotholder, SPItem *item) { KnotHolderEntity *e = new BeP::KnotHolderEntityWidthBendPath(this); - e->create(desktop, item, knotholder, Inkscape::CTRL_TYPE_UNKNOWN, _("Change the width"), SP_KNOT_SHAPE_CIRCLE); + e->create(NULL, item, knotholder, Inkscape::CTRL_TYPE_UNKNOWN, _("Change the width"), SP_KNOT_SHAPE_CIRCLE); knotholder->add(e); } @@ -189,6 +189,8 @@ KnotHolderEntityWidthBendPath::knot_set(Geom::Point const &p, Geom::Point const& } else { lpe->prop_scale.param_set_value(Geom::distance(s , ptA)/(lpe->original_height/2.0)); } + Inkscape::Preferences *prefs = Inkscape::Preferences::get(); + prefs->setDouble("/live_effect/bend/width", lpe->prop_scale); sp_lpe_item_update_patheffect (SP_LPE_ITEM(item), false, true); } |
