basegfx/source/polygon/b2dpolygontools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 9e25f276d92979e231f36e14f10d25a8bed9cd07 Author: Caolán McNamara <caol...@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;
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits