fix computation of Text bounding box to respect _clamped_width
[ardour.git] / gtk2_ardour / ardour_ui_dialogs.cc
index 81c0be223c04cd730a9752643174b3043f8fe50b..db9e420206f0299fbbfe83d95f03f511bd00e0fc 100644 (file)
@@ -275,7 +275,10 @@ ARDOUR_UI::unload_session (bool hide_stuff)
        rec_button.set_sensitive (false);
 
        WM::Manager::instance().set_session ((ARDOUR::Session*) 0);
-       ARDOUR_UI::instance()->video_timeline->close_session();
+
+       if (ARDOUR_UI::instance()->video_timeline) {
+               ARDOUR_UI::instance()->video_timeline->close_session();
+       }
 
        stop_blinking ();
        stop_clocking ();