[Libreoffice-commits] .: Branch 'libreoffice-3-3' - canvas/source

Thorsten Behrens thorsten at kemper.freedesktop.org
Mon Feb 21 02:50:34 PST 2011


 canvas/source/cairo/cairo_canvashelper.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit faf02acc88bc4d7ead617e8e4999ac717bbce31b
Author: Radek Doulik <rodo at novell.com>
Date:   Thu Feb 17 15:55:19 2011 +0100

    fix cairo canvas edge count calculation
    
    (cherry picked from commit abb5233c0b9b584407b4696f5db2c330ca45b632)
    
    Signed-off-by: Thorsten Behrens <tbehrens at novell.com>

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