summaryrefslogtreecommitdiffstats
path: root/src/live_effects
diff options
context:
space:
mode:
Diffstat (limited to 'src/live_effects')
-rw-r--r--src/live_effects/lpe-bounding-box.cpp1
-rw-r--r--src/live_effects/lpe-fill-between-many.cpp3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/live_effects/lpe-bounding-box.cpp b/src/live_effects/lpe-bounding-box.cpp
index cfe1f5165..2de768c3a 100644
--- a/src/live_effects/lpe-bounding-box.cpp
+++ b/src/live_effects/lpe-bounding-box.cpp
@@ -41,6 +41,7 @@ void LPEBoundingBox::doEffect (SPCurve * curve)
p.appendNew<Geom::LineSegment>(Geom::Point(bbox->right(), bbox->bottom()));
p.appendNew<Geom::LineSegment>(Geom::Point(bbox->left(), bbox->bottom()));
p.appendNew<Geom::LineSegment>(Geom::Point(bbox->left(), bbox->top()));
+ p.close();
Geom::PathVector out;
out.push_back(p);
curve->set_pathvector(out);
diff --git a/src/live_effects/lpe-fill-between-many.cpp b/src/live_effects/lpe-fill-between-many.cpp
index ccb9cf56d..2087925fa 100644
--- a/src/live_effects/lpe-fill-between-many.cpp
+++ b/src/live_effects/lpe-fill-between-many.cpp
@@ -57,6 +57,9 @@ void LPEFillBetweenMany::doEffect (SPCurve * curve)
if (!res_pathv.empty()) {
res_pathv.front().close();
}
+ if (res_pathv.empty()) {
+ res_pathv = curve->get_pathvector();
+ }
curve->set_pathvector(res_pathv);
}