SVN r1777 causes get_tooltips_object() to return a NULL pointer for the meta panel...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 19 Oct 2008 01:38:45 +0000 (01:38 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 19 Oct 2008 01:38:45 +0000 (01:38 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2107 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/dockable.cpp

index ce4eb9d..4745311 100644 (file)
@@ -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();