Construct new QPainterPath isntead of clearing

This commit is contained in:
Ahmed Essam 2020-05-31 12:43:57 +02:00
parent 1bff8a4735
commit 576891d4f8
1 changed files with 1 additions and 1 deletions

View File

@ -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();