[Libreoffice-commits] libmspub.git: src/lib
David Tardon
dtardon at redhat.com
Wed Mar 21 14:03:29 UTC 2018
src/lib/PolygonUtils.cpp | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 3988aba06f5297fc2262462d89cb601aeffcae3b
Author: David Tardon <dtardon at redhat.com>
Date: Wed Mar 21 15:03:03 2018 +0100
ofz#7053 avoid access to empty vector
Change-Id: I0d353901c1d5a02b57cc068aa9b7669af81f3073
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];
More information about the Libreoffice-commits
mailing list