diff options
author | Radek Doulik <rodo@novell.com> | 2011-02-17 15:55:19 +0100 |
---|---|---|
committer | Radek Doulik <rodo@novell.com> | 2011-02-17 16:03:17 +0100 |
commit | 7d613299aec0a1ba4fc03fe306d3f528fed17907 (patch) | |
tree | a2230425f04c7647fabe14e56ec62685cc3cb6a2 /canvas/source | |
parent | 07a5b5a6cce711133a07887dd8b349615adb1bd8 (diff) |
fix edge count calculation
Diffstat (limited to 'canvas/source')
-rw-r--r-- | canvas/source/cairo/cairo_canvashelper.cxx | 2 |
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)); |