[Libreoffice-commits] core.git: basegfx/source
Caolán McNamara
caolanm at redhat.com
Tue Apr 21 04:16:51 PDT 2015
basegfx/source/polygon/b2dpolygontools.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 9e25f276d92979e231f36e14f10d25a8bed9cd07
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Apr 21 11:41:45 2015 +0100
fix crash on export of ooo30155-1.sxw to odt
Change-Id: I1dd087ea6803f29756e1b78385a4a98f7378e616
diff --git a/basegfx/source/polygon/b2dpolygontools.cxx b/basegfx/source/polygon/b2dpolygontools.cxx
index ba27b93..02c44d8 100644
--- a/basegfx/source/polygon/b2dpolygontools.cxx
+++ b/basegfx/source/polygon/b2dpolygontools.cxx
@@ -662,7 +662,7 @@ namespace basegfx
// is checked above. Unfortunately, with floating-
// point calculations, this case might happen.
// Handled by nIndex check below
- if(nIndex < nEdgeCount && fTools::moreOrEqual(fDistance, fEdgeLength))
+ if (nIndex+1 < nEdgeCount && fTools::moreOrEqual(fDistance, fEdgeLength))
{
// go to next edge
fDistance -= fEdgeLength;
More information about the Libreoffice-commits
mailing list