[Libreoffice-commits] core.git: Branch 'feature/opengl-canvas-rework' - canvas/source
Michael Jaumann
meta_dev at yahoo.com
Thu Jan 22 02:20:31 PST 2015
canvas/source/opengl/ogl_canvashelper.cxx | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
New commits:
commit d10845d1f2200ee0a889264753ebb4f083b5b40b
Author: Michael Jaumann <meta_dev at yahoo.com>
Date: Thu Jan 22 09:55:43 2015 +0000
related to last commit, forget a line :)
Change-Id: I18b3b2046ac6ba54635a022c3268a5264cf6b05b
diff --git a/canvas/source/opengl/ogl_canvashelper.cxx b/canvas/source/opengl/ogl_canvashelper.cxx
index 7cdc7e6..58e8072 100644
--- a/canvas/source/opengl/ogl_canvashelper.cxx
+++ b/canvas/source/opengl/ogl_canvashelper.cxx
@@ -664,12 +664,14 @@ namespace oglcanvas
// via OutDev::DrawPolyPolygon(), on/off fill would
// generate off areas on those self-intersections.
+ const sal_uInt16 nSize( aStrokedPolyPoly.count() );
+
for(sal_uInt32 i=0;i<nSize; ++i)
{
- ::basegfx::B2DPolyPolygon tempStrokedPoly;
- tempStrokedPoly.append(aStrokedPolyPoly.getB2DPolygon(i));
+ ::basegfx::B2DPolyPolygon aSingleStrokedPoly;
+ aSingleStrokedPoly.append(aStrokedPolyPoly.getB2DPolygon(i));
- rAct.maPolyPolys.push_back(tempStrokedPoly);
+ rAct.maPolyPolys.push_back(aSingleStrokedPoly);
rAct.maPolyPolys.back().makeUnique(); // own copy, for thread safety
rAct.maFunction = &lcl_fillPolyPolygon;
More information about the Libreoffice-commits
mailing list