Fixed crash after change line type for tool line.
--HG-- branch : develop
This commit is contained in:
parent
fd55d1ecfd
commit
0dc4a33432
|
@ -445,6 +445,15 @@ void VToolLine::ShowVisualization(bool show)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
|
void VToolLine::setTypeLine(const QString &value)
|
||||||
|
{
|
||||||
|
typeLine = value;
|
||||||
|
|
||||||
|
QSharedPointer<VGObject> obj;//We don't have object for line in data container. Just will send empty object.
|
||||||
|
SaveOption(obj);
|
||||||
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
quint32 VToolLine::getFirstPoint() const
|
quint32 VToolLine::getFirstPoint() const
|
||||||
{
|
{
|
||||||
|
|
|
@ -58,6 +58,7 @@ public:
|
||||||
void setSecondPoint(const quint32 &value);
|
void setSecondPoint(const quint32 &value);
|
||||||
|
|
||||||
virtual void ShowVisualization(bool show);
|
virtual void ShowVisualization(bool show);
|
||||||
|
virtual void setTypeLine(const QString &value);
|
||||||
public slots:
|
public slots:
|
||||||
virtual void FullUpdateFromFile();
|
virtual void FullUpdateFromFile();
|
||||||
virtual void ChangedActivDraw(const QString &newName);
|
virtual void ChangedActivDraw(const QString &newName);
|
||||||
|
|
|
@ -103,7 +103,7 @@ public:
|
||||||
const VContainer *getData() const;
|
const VContainer *getData() const;
|
||||||
|
|
||||||
QString getLineType() const;
|
QString getLineType() const;
|
||||||
void setTypeLine(const QString &value);
|
virtual void setTypeLine(const QString &value);
|
||||||
QMap<QString, quint32> PointsList() const;
|
QMap<QString, quint32> PointsList() const;
|
||||||
virtual QString getTagName() const =0;
|
virtual QString getTagName() const =0;
|
||||||
virtual void ShowVisualization(bool show) =0;
|
virtual void ShowVisualization(bool show) =0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user