summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/PolygonUtils.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/PolygonUtils.cpp b/src/lib/PolygonUtils.cpp
index 7738809..17f3515 100644
--- a/src/lib/PolygonUtils.cpp
+++ b/src/lib/PolygonUtils.cpp
@@ -5786,6 +5786,10 @@ void drawEmulatedLine(std::shared_ptr<const CustomShape> shape, ShapeType shapeT
}
}
}
+
+ if (lineInfos.empty())
+ return;
+
if (rectangle)
{
LineInfo *top = &lineInfos[0];