[Libreoffice-commits] libcdr.git: src/lib
David Tardon
dtardon at redhat.com
Fri Apr 21 08:42:53 UTC 2017
src/lib/CDRTypes.cpp | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit efe976ca8556426d1019caede0a3193647549dc8
Author: David Tardon <dtardon at redhat.com>
Date: Fri Apr 21 10:42:20 2017 +0200
ofz#1211 avoid division by 0
Change-Id: I10e29fad157257c608b23f33ff5a0aa0125d3cb9
diff --git a/src/lib/CDRTypes.cpp b/src/lib/CDRTypes.cpp
index 0e57f89..14c84f3 100644
--- a/src/lib/CDRTypes.cpp
+++ b/src/lib/CDRTypes.cpp
@@ -13,6 +13,9 @@
void libcdr::CDRPolygon::create(libcdr::CDRPath &path) const
{
+ if (m_numAngles == 0)
+ return;
+
libcdr::CDRPath tmpPath(path);
double step = 2*M_PI / (double)m_numAngles;
if (m_nextPoint && m_numAngles % m_nextPoint)
More information about the Libreoffice-commits
mailing list