mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
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
1 changed files with 4 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue