diff options
author | Robin Gareus <robin@gareus.org> | 2013-07-10 15:22:56 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-07-10 15:27:17 +0200 |
commit | d03ec98ec33b99e68fc193609f5aee168d9423d0 (patch) | |
tree | 846eb426e54c07c5ed679cb0f0d19208743057b5 /gtk2_ardour/window_manager.cc | |
parent | 40f8806c7dba1e38caffad9eb3c9a63a3c1f6154 (diff) |
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 :)
Diffstat (limited to 'gtk2_ardour/window_manager.cc')
-rw-r--r-- | gtk2_ardour/window_manager.cc | 6 |
1 files 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); + } } /*-----------------------*/ |