# HG changeset patch # User Teemu Piippo # Date 1529667990 -10800 # Node ID 6608db56b047931656151feb07951b9ba0b47db3 # Parent bf373bd83c1fa32ccdb273b2b7f949432e233a78 fixed rendering of bézier curves diff -r bf373bd83c1f -r 6608db56b047 src/linetypes/modelobject.cpp --- a/src/linetypes/modelobject.cpp Fri Jun 22 14:33:09 2018 +0300 +++ b/src/linetypes/modelobject.cpp Fri Jun 22 14:46:30 2018 +0300 @@ -465,6 +465,11 @@ return Vertex(); } +bool LDBezierCurve::isRasterizable() const +{ + return true; +} + void LDBezierCurve::rasterize(DocumentManager* context, Winding winding, Model& model, bool, bool) { QVector polygons = rasterizePolygons(context, winding); diff -r bf373bd83c1f -r 6608db56b047 src/linetypes/modelobject.h --- a/src/linetypes/modelobject.h Fri Jun 22 14:33:09 2018 +0300 +++ b/src/linetypes/modelobject.h Fri Jun 22 14:46:30 2018 +0300 @@ -221,6 +221,7 @@ virtual QString asText() const override; Vertex pointAt (qreal t) const; + bool isRasterizable() const override; void rasterize(DocumentManager*context, Winding winding, Model&, bool, bool) override; QVector rasterizePolygons(DocumentManager*, Winding) override; int numVertices() const override { return 4; }