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 :)
This commit is contained in:
Robin Gareus 2013-07-10 15:22:56 +02:00
parent 40f8806c7d
commit d03ec98ec3

View 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);
}
}
/*-----------------------*/