Check if object pointer is null before commit
This commit is contained in:
parent
5daf1ce6c0
commit
c57ea608c3
5 changed files with 25 additions and 17 deletions
|
|
@ -57,8 +57,8 @@ void EditTool::switch_tool(DrawingProgramToolType newTool) {
|
|||
compEditTool->commit_edit_updates(objInfoBeingEdited, prevData);
|
||||
objInfoBeingEdited->obj->commit_update(drawP);
|
||||
objInfoBeingEdited->obj->send_comp_update(drawP, true);
|
||||
objInfoBeingEdited = nullptr;
|
||||
}
|
||||
objInfoBeingEdited = nullptr;
|
||||
pointHandles.clear();
|
||||
pointDragging = nullptr;
|
||||
isEditing = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue