src/glCompiler.cpp

changeset 1023
9450ac3cd930
parent 1017
fc1c13db9618
child 1035
8a60250175ba
--- a/src/glCompiler.cpp	Tue Feb 16 16:28:44 2016 +0200
+++ b/src/glCompiler.cpp	Tue Feb 16 19:59:43 2016 +0200
@@ -28,6 +28,7 @@
 #include "dialogs.h"
 #include "guiutilities.h"
 #include "documentmanager.h"
+#include "grid.h"
 
 struct GLErrorInfo
 {
@@ -324,10 +325,10 @@
 	case OBJ_BezierCurve:
 		{
 			LDBezierCurve* curve = static_cast<LDBezierCurve*> (obj);
-			for (LDPolygon& poly : curve->rasterizePolygons())
+			for (LDPolygon& polygon : curve->rasterizePolygons(grid()->bezierCurveSegments()))
 			{
-				poly.id = obj->id();
-				compilePolygon (poly, obj, &info);
+				polygon.id = obj->id();
+				compilePolygon (polygon, obj, &info);
 			}
 		}
 		break;

mercurial