summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk2_ardour/mixer_group_tabs.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/mixer_group_tabs.cc b/gtk2_ardour/mixer_group_tabs.cc
index 7d8bb99b48..e7d82ae708 100644
--- a/gtk2_ardour/mixer_group_tabs.cc
+++ b/gtk2_ardour/mixer_group_tabs.cc
@@ -83,7 +83,9 @@ MixerGroupTabs::compute_tabs () const
}
}
- x += s->get_width ();
+ int ww = 0, wh = 0;
+ s->get_size_request (ww, wh); // widget may not be realized, get_width() is invalid.
+ x += ww;
}
if (tab.group) {