Skip to content

Commit

Permalink
Fix possible crash on get_local_name() of Layer_PasteCanvas (synfig#2300
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rodolforg authored and morevnaproject committed Oct 4, 2021
1 parent 41748f7 commit 710da08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synfig-core/src/synfig/layers/layer_pastecanvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ String
Layer_PasteCanvas::get_local_name()const
{
if(!sub_canvas || sub_canvas->is_inline()) return String();
if(sub_canvas->get_root()==get_canvas()->get_root()) return sub_canvas->get_id();
if(get_canvas() && sub_canvas->get_root()==get_canvas()->get_root()) return sub_canvas->get_id();
return sub_canvas->get_file_name();
}

Expand Down

0 comments on commit 710da08

Please sign in to comment.