[Libreoffice-commits] .: canvas/source
Radek DoulÃk
rodo at kemper.freedesktop.org
Thu Feb 17 07:04:11 PST 2011
canvas/source/cairo/cairo_canvashelper.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit abb5233c0b9b584407b4696f5db2c330ca45b632
Author: Radek Doulik <rodo at novell.com>
Date: Thu Feb 17 15:55:19 2011 +0100
fix edge count calculation
diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx
index bb5f6be..29cf38e 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));
More information about the Libreoffice-commits
mailing list