summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2011-02-17 15:55:19 +0100
committerRadek Doulik <rodo@novell.com>2011-02-17 16:03:17 +0100
commit7d613299aec0a1ba4fc03fe306d3f528fed17907 (patch)
treea2230425f04c7647fabe14e56ec62685cc3cb6a2 /canvas
parent07a5b5a6cce711133a07887dd8b349615adb1bd8 (diff)
fix edge count calculation
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/cairo/cairo_canvashelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx
index a7b8d735ac61..f664a0182517 100644
--- a/canvas/source/cairo/cairo_canvashelper.cxx
+++ b/canvas/source/cairo/cairo_canvashelper.cxx
@@ -1065,7 +1065,7 @@ namespace cairocanvas
if(nPointCount)
{
- const sal_uInt32 nEdgeCount(aCandidate.isClosed() ? nPointCount + 1: nPointCount);
+ const sal_uInt32 nEdgeCount(aCandidate.isClosed() ? nPointCount: nPointCount - 1);
basegfx::B2DPolygon aEdge;
aEdge.append(aCandidate.getB2DPoint(0));
aEdge.append(basegfx::B2DPoint(0.0, 0.0));