diff --git a/src/libs/vgeometry/varc.h b/src/libs/vgeometry/varc.h index c022d7303..6b485c7ba 100644 --- a/src/libs/vgeometry/varc.h +++ b/src/libs/vgeometry/varc.h @@ -59,12 +59,12 @@ public: void SetFormulaRadius (const QString &formula, qreal value); qreal GetRadius () const; - qreal GetLength () const; + virtual qreal GetLength () const Q_DECL_OVERRIDE; QPointF GetP1() const; QPointF GetP2 () const; - QVector GetPoints () const; + virtual QVector GetPoints () const Q_DECL_OVERRIDE; QPointF CutArc (const qreal &length, VArc &arc1, VArc &arc2) const; QPointF CutArc (const qreal &length) const; diff --git a/src/libs/vgeometry/vellipticalarc.h b/src/libs/vgeometry/vellipticalarc.h index 58633c60d..064060a86 100644 --- a/src/libs/vgeometry/vellipticalarc.h +++ b/src/libs/vgeometry/vellipticalarc.h @@ -66,12 +66,12 @@ public: void SetFormulaRadius2 (const QString &formula, qreal value); qreal GetRadius2 () const; - qreal GetLength () const; + virtual qreal GetLength () const Q_DECL_OVERRIDE; QPointF GetP1() const; QPointF GetP2() const; - QVector GetPoints () const; + virtual QVector GetPoints () const Q_DECL_OVERRIDE; QPointF CutArc (const qreal &length, VEllipticalArc &arc1, VEllipticalArc &arc2) const; QPointF CutArc (const qreal &length) const; diff --git a/src/libs/vtools/visualization/line/vistoolrotation.cpp b/src/libs/vtools/visualization/line/vistoolrotation.cpp index 8f2c329f2..549b2e374 100644 --- a/src/libs/vtools/visualization/line/vistoolrotation.cpp +++ b/src/libs/vtools/visualization/line/vistoolrotation.cpp @@ -244,7 +244,7 @@ QGraphicsPathItem *VisToolRotation::GetCurve(quint32 i, const QColor &color) } else { - auto curve = InitItem(supportColor, this); + auto curve = InitItem(color, this); curves.append(curve); return curve; }