Fixed issue #799. Copy piece tool crashes Valentina.
--HG-- branch : develop
This commit is contained in:
parent
f8b673d5eb
commit
919633440f
|
@ -72,6 +72,7 @@ VToolPin *VToolPin::Create(VToolPinInitData initData)
|
||||||
return nullptr;// Just ignore
|
return nullptr;// Just ignore
|
||||||
}
|
}
|
||||||
VPointF *pinPoint = new VPointF(*point);
|
VPointF *pinPoint = new VPointF(*point);
|
||||||
|
pinPoint->setIdObject(initData.pointId);
|
||||||
pinPoint->setMode(Draw::Modeling);
|
pinPoint->setMode(Draw::Modeling);
|
||||||
initData.data->UpdateGObject(initData.id, pinPoint);
|
initData.data->UpdateGObject(initData.id, pinPoint);
|
||||||
if (initData.parse != Document::FullParse)
|
if (initData.parse != Document::FullParse)
|
||||||
|
|
|
@ -229,6 +229,7 @@ quint32 VAbstractTool::CreateNode(VContainer *data, quint32 id)
|
||||||
//We can't use exist object. Need create new.
|
//We can't use exist object. Need create new.
|
||||||
T *node = new T(*data->GeometricObject<T>(id).data());
|
T *node = new T(*data->GeometricObject<T>(id).data());
|
||||||
node->setMode(Draw::Modeling);
|
node->setMode(Draw::Modeling);
|
||||||
|
node->setIdObject(id);
|
||||||
return data->AddGObject(node);
|
return data->AddGObject(node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user