multiline_selector.set_active(0);
}
- if (lines.size() + 1 > 1 && (height_style != Small && height_style != Smaller)) {
+ if (lines.size() + 1 > 1 && (height > hSmall)) {
multiline_selector.show();
} else {
multiline_selector.hide();
}
void
-PanAutomationTimeAxisView::set_height (TimeAxisView::TrackHeight th)
+PanAutomationTimeAxisView::set_height (uint32_t h)
{
- AutomationTimeAxisView::set_height(th);
-
- switch (th) {
- case Largest:
- case Large:
- case Larger:
- case Normal:
- if (lines.size() > 1) {
- multiline_selector.show();
- break;
- }
- default:
- multiline_selector.hide();
+ AutomationTimeAxisView::set_height(h);
+
+ if (h >= hNormal) {
+ if (lines.size() > 1) {
+ multiline_selector.show();
+ }
+ } else {
+ multiline_selector.hide();
}
}