summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-04-21 11:41:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-04-21 12:13:44 +0100
commit9e25f276d92979e231f36e14f10d25a8bed9cd07 (patch)
tree2692ecf01cba8fec5ee65b65a11e35979e05fab8 /basegfx
parent7546a904265cc0d0a0e3795cdb411cbb945a39fe (diff)
fix crash on export of ooo30155-1.sxw to odt
Change-Id: I1dd087ea6803f29756e1b78385a4a98f7378e616
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/source/polygon/b2dpolygontools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basegfx/source/polygon/b2dpolygontools.cxx b/basegfx/source/polygon/b2dpolygontools.cxx
index ba27b93f7f09..02c44d818b0e 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;