mirror of https://github.com/CGAL/cgal
Construct new QPainterPath isntead of clearing
This commit is contained in:
parent
1bff8a4735
commit
576891d4f8
|
|
@ -200,7 +200,7 @@ PolylineInputMethod::PolylineInputMethod(QGraphicsScene* scene) :
|
||||||
|
|
||||||
void PolylineInputMethod::beginInput()
|
void PolylineInputMethod::beginInput()
|
||||||
{
|
{
|
||||||
this->painterPath.clear();
|
this->painterPath = {};
|
||||||
this->polylineGuide.setPath(this->painterPath);
|
this->polylineGuide.setPath(this->painterPath);
|
||||||
this->lastLine.setLine(0, 0, 0, 0);
|
this->lastLine.setLine(0, 0, 0, 0);
|
||||||
QPen pen = this->polylineGuide.pen();
|
QPen pen = this->polylineGuide.pen();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue