Fixed crash after change line type for tool line.

--HG--
branch : develop
This commit is contained in:
dismine 2014-09-26 19:48:46 +03:00
parent fd55d1ecfd
commit 0dc4a33432
3 changed files with 11 additions and 1 deletions

View File

@ -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
{

View File

@ -58,6 +58,7 @@ public:
void setSecondPoint(const quint32 &value);
virtual void ShowVisualization(bool show);
virtual void setTypeLine(const QString &value);
public slots:
virtual void FullUpdateFromFile();
virtual void ChangedActivDraw(const QString &newName);

View File

@ -103,7 +103,7 @@ public:
const VContainer *getData() const;
QString getLineType() const;
void setTypeLine(const QString &value);
virtual void setTypeLine(const QString &value);
QMap<QString, quint32> PointsList() const;
virtual QString getTagName() const =0;
virtual void ShowVisualization(bool show) =0;