Mercurial > hg > svgui
diff view/PaneStack.cpp @ 1615:911330a28a7c
Where the "below" view represents only a subset of the "above" view, cut off the feature mappings at the outer edges of the "below" view - don't map everything outside this (it would all just map onto the same single points at beginning and end, which is excessive, confusing and not useful)
author | Chris Cannam |
---|---|
date | Thu, 02 Jul 2020 15:37:43 +0100 |
parents | c6f5c822b10d |
children |
line wrap: on
line diff
--- a/view/PaneStack.cpp Tue Jun 30 10:56:56 2020 +0100 +++ b/view/PaneStack.cpp Thu Jul 02 15:37:43 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); } }