From d03ec98ec33b99e68fc193609f5aee168d9423d0 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 10 Jul 2013 15:22:56 +0200 Subject: [PATCH] fix ProxyBase::save_pos_and_size 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/window_manager.cc b/gtk2_ardour/window_manager.cc index 629e24419b..5fa1b6c7b0 100644 --- a/gtk2_ardour/window_manager.cc +++ b/gtk2_ardour/window_manager.cc @@ -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); + } } /*-----------------------*/