[Libreoffice-commits] libvisio.git: src/lib
David Tardon
dtardon at redhat.com
Fri Jul 7 08:28:06 UTC 2017
src/lib/VSDContentCollector.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 4c9f3fd5cf1de3e4c6c0d28b848b0d496cc24f0a
Author: David Tardon <dtardon at redhat.com>
Date: Fri Jul 7 10:26:30 2017 +0200
ofz#2477 avoid divide by zero
Change-Id: I952670a60a0a8133509178449ac89dfad2091213
diff --git a/src/lib/VSDContentCollector.cpp b/src/lib/VSDContentCollector.cpp
index 08e88e1..bc7fa42 100644
--- a/src/lib/VSDContentCollector.cpp
+++ b/src/lib/VSDContentCollector.cpp
@@ -1978,7 +1978,7 @@ void libvisio::VSDContentCollector::_generateBezierSegmentsFromNURBS(unsigned de
while (b < m)
{
i = b;
- while (b < m && knotVector[b+1] == knotVector[b])
+ while (b < m && VSD_APPROX_EQUAL(knotVector[b+1], knotVector[i]))
b++;
unsigned mult = b - i + 1;
if (mult > degree) // it doesn't make sense to have knot multiplicity greater than the curve degree
More information about the Libreoffice-commits
mailing list