projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40f8806
)
fix ProxyBase::save_pos_and_size
author
Robin Gareus
<robin@gareus.org>
Wed, 10 Jul 2013 13:22:56 +0000
(15:22 +0200)
committer
Robin Gareus
<robin@gareus.org>
Wed, 10 Jul 2013 13:27:17 +0000
(15:27 +0200)
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
patch
|
blob
|
history
diff --git
a/gtk2_ardour/window_manager.cc
b/gtk2_ardour/window_manager.cc
index 629e24419b470716e51ae078e9c3609eb5ac5bfa..5fa1b6c7b0a98fd2f997c05aa20580024ef5790a 100644
(file)
--- 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);
+ }
}
/*-----------------------*/