Fix crash when save notes for the line tool.
This commit is contained in:
parent
3c7f565d86
commit
66fc63c04b
|
@ -80,7 +80,7 @@ public:
|
|||
virtual bool IsLabelVisible(quint32 id) const;
|
||||
|
||||
QString GetNotes() const;
|
||||
void SetNotes(const QString ¬es);
|
||||
virtual void SetNotes(const QString ¬es);
|
||||
|
||||
signals:
|
||||
void ChangedToolSelection(bool selected, quint32 object, quint32 tool);
|
||||
|
|
|
@ -484,7 +484,7 @@ void VToolLine::SetLineType(const QString &value)
|
|||
{
|
||||
m_lineType = value;
|
||||
|
||||
QSharedPointer<VGObject> obj;//We don't have object for line in data container. Just will send empty object.
|
||||
QSharedPointer<VGObject> obj;//We don't have object for line in data container. Just will send an empty object.
|
||||
SaveOption(obj);
|
||||
}
|
||||
|
||||
|
@ -499,7 +499,16 @@ void VToolLine::SetLineColor(const QString &value)
|
|||
{
|
||||
lineColor = value;
|
||||
|
||||
QSharedPointer<VGObject> obj;//We don't have object for line in data container. Just will send empty object.
|
||||
QSharedPointer<VGObject> obj;//We don't have object for line in data container. Just will send an empty object.
|
||||
SaveOption(obj);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
void VToolLine::SetNotes(const QString ¬es)
|
||||
{
|
||||
m_notes = notes;
|
||||
|
||||
QSharedPointer<VGObject> obj;//We don't have object for line in data container. Just will send an empty object.
|
||||
SaveOption(obj);
|
||||
}
|
||||
|
||||
|
|
|
@ -85,6 +85,8 @@ public:
|
|||
QString GetLineColor() const;
|
||||
void SetLineColor(const QString &value);
|
||||
|
||||
virtual void SetNotes(const QString ¬es) override;
|
||||
|
||||
virtual void ShowVisualization(bool show) override;
|
||||
|
||||
virtual void SetLineType(const QString &value) override;
|
||||
|
|
Loading…
Reference in New Issue
Block a user