From: dooglus Date: Sun, 19 Oct 2008 01:38:45 +0000 (+0000) Subject: SVN r1777 causes get_tooltips_object() to return a NULL pointer for the meta panel... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=fbe68cf6e61715e0f4a40a28ef3a64c8501daca3;p=synfig.git SVN r1777 causes get_tooltips_object() to return a NULL pointer for the meta panel, leading to a crash. Only set the tip if the pointer isn't NULL. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2107 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/dockable.cpp b/synfig-studio/trunk/src/gtkmm/dockable.cpp index ce4eb9d..4745311 100644 --- a/synfig-studio/trunk/src/gtkmm/dockable.cpp +++ b/synfig-studio/trunk/src/gtkmm/dockable.cpp @@ -328,7 +328,8 @@ Dockable::add_button(const Gtk::StockID& stock_id, const synfig::String& tooltip //ret->set_relief(Gtk::RELIEF_HALF); //ret->set_relief(Gtk::RELIEF_NONE); ret->set_label(tooltip); - toolbar_->get_tooltips_object()->set_tip(*ret,tooltip); + if (toolbar_->get_tooltips_object()) + toolbar_->get_tooltips_object()->set_tip(*ret,tooltip); ret->show(); //icon->show();