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:
parent
40f8806c7d
commit
d03ec98ec3
@ -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);
|
||||
}
|
||||
}
|
||||
/*-----------------------*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user