Mercurial > hg > svgui
diff view/PaneStack.cpp @ 1617:cbbb411da977
Merge
author | Chris Cannam |
---|---|
date | Tue, 21 Jul 2020 14:02:12 +0100 |
parents | 911330a28a7c |
children |
line wrap: on
line diff
--- a/view/PaneStack.cpp Tue Jul 21 14:01:58 2020 +0100 +++ b/view/PaneStack.cpp Tue Jul 21 14:02:12 2020 +0100 @@ -221,8 +221,9 @@ if (!(m_options & int(Option::ShowAlignmentViews))) { av->hide(); } else { - av->setViewAbove(m_panes[i-1].pane); - av->setViewBelow(m_panes[i].pane); + av->setAboveView(m_panes[i-1].pane); + av->setBelowView(m_panes[i].pane); + av->setReferenceView(m_panes[0].pane); av->show(); } } @@ -236,8 +237,9 @@ for (int i = 0; in_range_for(m_panes, i); ++i) { auto av = m_panes[i].alignmentView; if (!av) continue; - av->setViewAbove(nullptr); - av->setViewBelow(nullptr); + av->setAboveView(nullptr); + av->setBelowView(nullptr); + av->setReferenceView(nullptr); } } @@ -253,6 +255,7 @@ if (!(m_options & int(Option::ShowAlignmentViews))) return; if (!(m_options & int(Option::NoUserResize))) return; if (!isVisible()) return; + if (m_panes.empty()) return; int heightPerPane = forMyHeight / int(m_panes.size());