diff options
-rw-r--r-- | gtk2_ardour/mixer_ui.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index e28fb40edf..e58a61948d 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -1734,12 +1734,11 @@ Mixer_UI::pane_allocation_handler (Allocation&, Gtk::Paned* which) return; } - if (!geometry) { - pos = 0; + if (!geometry || (prop = geometry->property("mixer-list-hpane-pos")) == 0) { + pos = 75; snprintf (buf, sizeof(buf), "%d", pos); } else { - prop = geometry->property("mixer-list-hpane-pos"); - pos = atoi (prop->value()); + pos = max (36, atoi (prop->value ())); } if ((done[2] = GTK_WIDGET(list_hpane.gobj())->allocation.width > pos)) { |