diff --git a/src/app/tools/drawTools/vabstractspline.cpp b/src/app/tools/drawTools/vabstractspline.cpp index 108194901..305eb11d9 100644 --- a/src/app/tools/drawTools/vabstractspline.cpp +++ b/src/app/tools/drawTools/vabstractspline.cpp @@ -217,3 +217,12 @@ QPainterPath VAbstractSpline::ToolPath(PathDirection direction) const path.setFillRule( Qt::WindingFill ); return path; } + +//--------------------------------------------------------------------------------------------------------------------- +void VAbstractSpline::ShowFoot(bool show) +{ + for (int i = 0; i < controlPoints.size(); ++i) + { + controlPoints.at(i)->setVisible(show); + } +} diff --git a/src/app/tools/drawTools/vabstractspline.h b/src/app/tools/drawTools/vabstractspline.h index 810dd1c2a..f366384de 100644 --- a/src/app/tools/drawTools/vabstractspline.h +++ b/src/app/tools/drawTools/vabstractspline.h @@ -81,6 +81,7 @@ protected: virtual void keyReleaseEvent(QKeyEvent * event); virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ); QPainterPath ToolPath(PathDirection direction = PathDirection::Hide) const; + void ShowFoot(bool show); }; #endif // VABSTRACTSPLINE_H diff --git a/src/app/tools/drawTools/vtoolspline.cpp b/src/app/tools/drawTools/vtoolspline.cpp index 1b4ebd96b..983f37bb0 100644 --- a/src/app/tools/drawTools/vtoolspline.cpp +++ b/src/app/tools/drawTools/vtoolspline.cpp @@ -72,6 +72,8 @@ VToolSpline::VToolSpline(VPattern *doc, VContainer *data, quint32 id, const Sour connect(this, &VToolSpline::setEnabledPoint, controlPoint2, &VControlPointSpline::setEnabledPoint); controlPoints.append(controlPoint2); + ShowFoot(false); + if (typeCreation == Source::FromGui) { AddToFile(); @@ -242,6 +244,7 @@ void VToolSpline::ShowVisualization(bool show) delete vis; vis = nullptr; } + ShowFoot(show); } //---------------------------------------------------------------------------------------------------------------------