summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-bendpath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/live_effects/lpe-bendpath.cpp')
-rw-r--r--src/live_effects/lpe-bendpath.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/live_effects/lpe-bendpath.cpp b/src/live_effects/lpe-bendpath.cpp
index 5c1953fda..ff5f738eb 100644
--- a/src/live_effects/lpe-bendpath.cpp
+++ b/src/live_effects/lpe-bendpath.cpp
@@ -94,7 +94,7 @@ LPEBendPath::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd
uskeleton = arc_length_parametrization(Piecewise<D2<SBasis> >(bend_path.get_pwd2()),2,.1);
uskeleton = remove_short_cuts(uskeleton,.01);
n = rot90(derivative(uskeleton));
- n = force_continuity(remove_short_cuts(n,.1));
+ n = force_continuity(remove_short_cuts(n,.01));
bend_path.changed = false;
}
@@ -109,9 +109,10 @@ LPEBendPath::doEffect_pwd2 (Geom::Piecewise<Geom::D2<Geom::SBasis> > const & pwd
Interval bboxHorizontal = vertical_pattern.get_value() ? boundingbox_Y : boundingbox_X;
Interval bboxVertical = vertical_pattern.get_value() ? boundingbox_X : boundingbox_Y;
-
+
+ //+0.1 in x fix bug #1658855
//We use the group bounding box size or the path bbox size to translate well x and y
- x-= bboxHorizontal.min();
+ x-= bboxHorizontal.min() + 0.1;
y-= bboxVertical.middle();
double scaling = uskeleton.cuts.back()/bboxHorizontal.extent();
@@ -151,6 +152,14 @@ LPEBendPath::resetDefaults(SPItem const* item)
}
void
+LPEBendPath::transform_multiply(Geom::Affine const& postmul, bool set)
+{
+ if (sp_lpe_item) {
+ sp_lpe_item_update_patheffect(sp_lpe_item, false, false);
+ }
+}
+
+void
LPEBendPath::addCanvasIndicators(SPLPEItem const */*lpeitem*/, std::vector<Geom::PathVector> &hp_vec)
{
hp_vec.push_back(bp_helper_path);