From 576891d4f81fd3d0725640dfb03f55d8899f5ec4 Mon Sep 17 00:00:00 2001 From: Ahmed Essam Date: Sun, 31 May 2020 12:43:57 +0200 Subject: [PATCH] Construct new QPainterPath isntead of clearing --- .../demo/Arrangement_on_surface_2/GraphicsViewCurveInput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Arrangement_on_surface_2/demo/Arrangement_on_surface_2/GraphicsViewCurveInput.cpp b/Arrangement_on_surface_2/demo/Arrangement_on_surface_2/GraphicsViewCurveInput.cpp index a094b31dafc..19b24f0080f 100644 --- a/Arrangement_on_surface_2/demo/Arrangement_on_surface_2/GraphicsViewCurveInput.cpp +++ b/Arrangement_on_surface_2/demo/Arrangement_on_surface_2/GraphicsViewCurveInput.cpp @@ -200,7 +200,7 @@ PolylineInputMethod::PolylineInputMethod(QGraphicsScene* scene) : void PolylineInputMethod::beginInput() { - this->painterPath.clear(); + this->painterPath = {}; this->polylineGuide.setPath(this->painterPath); this->lastLine.setLine(0, 0, 0, 0); QPen pen = this->polylineGuide.pen();