diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/conn-avoid-ref.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/conn-avoid-ref.cpp b/src/conn-avoid-ref.cpp index e571debbf..4723d142b 100644 --- a/src/conn-avoid-ref.cpp +++ b/src/conn-avoid-ref.cpp @@ -121,10 +121,8 @@ void SPAvoidRef::handleSettingChange() shapeRef = new Avoid::ShapeRef(router, poly, itemID); } } - else + else if (shapeRef) { - g_assert(shapeRef); - router->deleteShape(shapeRef); shapeRef = nullptr; } @@ -284,6 +282,9 @@ static Avoid::Polygon avoid_item_poly(SPItem const *item) // enlarge path by "desktop->namedview->connector_spacing" // store expanded convex hull in Avoid::Polygn Avoid::Polygon poly; + if (hull.empty()) { + return poly; + } Geom::Line hull_edge(hull.back(), hull.front()); Geom::Line prev_parallel_hull_edge; |
