fix ProxyBase::save_pos_and_size
authorRobin Gareus <robin@gareus.org>
Wed, 10 Jul 2013 13:22:56 +0000 (15:22 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 10 Jul 2013 13:27:17 +0000 (15:27 +0200)
win() may return NULL -- although if we get a size-request we
can be sure the window exists. -- NTL this feels better :)

gtk2_ardour/window_manager.cc

index 629e24419b470716e51ae078e9c3609eb5ac5bfa..5fa1b6c7b0a98fd2f997c05aa20580024ef5790a 100644 (file)
@@ -420,8 +420,10 @@ void
 ProxyBase::save_pos_and_size ()
 {
        Gtk::Window* win = get (false);
-       win->get_position (_x_off, _y_off);
-       win->get_size (_width, _height);
+       if (win) {
+               win->get_position (_x_off, _y_off);
+               win->get_size (_width, _height);
+       }
 }
 /*-----------------------*/