From abfcd94b0963be5f542e47abfc64a6d9c13ac2f9 Mon Sep 17 00:00:00 2001 From: dooglus Date: Fri, 31 Aug 2007 13:12:31 +0000 Subject: [PATCH] Fix 1780016. Right-clicking in the Children dialog no longer crashes studio. git-svn-id: http://svn.voria.com/code@568 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/canvasview.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/synfig-studio/trunk/src/gtkmm/canvasview.cpp b/synfig-studio/trunk/src/gtkmm/canvasview.cpp index 4b1d351..477e17f 100644 --- a/synfig-studio/trunk/src/gtkmm/canvasview.cpp +++ b/synfig-studio/trunk/src/gtkmm/canvasview.cpp @@ -2219,6 +2219,12 @@ CanvasView::on_children_user_click(int button, Gtk::TreeRow row, ChildrenTree::C if(!(bool)row[children_tree_model.is_canvas]) { synfigapp::ValueDesc value_desc=row[children_tree_model.value_desc]; + if (!value_desc) + { + //! \todo fix properly -- what is the child dialog for? + synfig::info("preventing child dialog right-click crash"); + return true; + } assert(value_desc); popup_param_menu(value_desc); return true; -- 2.7.4