Fixed segfault that occurs when undoing while drawing
This commit is contained in:
parent
0a8add3df1
commit
7f905f01df
5 changed files with 9 additions and 11 deletions
|
|
@ -66,7 +66,7 @@ void EditTool::add_point_handle(const HandleData& handle) {
|
|||
|
||||
void EditTool::reset_tool() {
|
||||
auto a = controls.compToEdit.lock();
|
||||
if(a) {
|
||||
if(a && a->collabListInfo.lock()) {
|
||||
switch(a->get_type()) {
|
||||
case DRAWCOMPONENT_TEXTBOX:
|
||||
drawP.textBoxTool.commit_edit_updates(std::static_pointer_cast<DrawTextBox>(a), controls.prevData);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue