Fix crash that I introduced with a recent bug fix.
authorCarl Hetherington <carl@carlh.net>
Fri, 4 Dec 2009 18:13:25 +0000 (18:13 +0000)
committerCarl Hetherington <carl@carlh.net>
Fri, 4 Dec 2009 18:13:25 +0000 (18:13 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@6281 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/time_axis_view_item.cc

index fe4fc9559c6dcf85819f216ddfb2637d6305a7c2..255ffce410d9bc4f98455368257b1f3aed409b52 100644 (file)
@@ -970,6 +970,10 @@ TimeAxisViewItem::set_y (double y)
 void
 TimeAxisViewItem::update_name_pixbuf_visibility ()
 {
+       if (!name_pixbuf) {
+               return;
+       }
+       
        if (wide_enough_for_name && high_enough_for_name) {
                name_pixbuf->show ();
        } else {