diff options
author | Radek Doulik <rodo@novell.com> | 2011-02-17 15:55:19 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@novell.com> | 2011-02-21 11:49:47 +0100 |
commit | ef2cd9c0c046324cf8f774c7811f06f23d230e4b (patch) | |
tree | debb37f5654ab42f7ba8ccb75da6f88700d4e185 /canvas/source | |
parent | c15ed83558189e0cc67f6fce9939177dfccc71b8 (diff) |
fix cairo canvas edge count calculation
(cherry picked from commit abb5233c0b9b584407b4696f5db2c330ca45b632)
Signed-off-by: Thorsten Behrens <tbehrens@novell.com>
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)); |