Mercurial > hg > svgui
changeset 1619:36634b427d61
Fix wrongly-written test which made the mapping alignments line up wrongly in some cases where adjacent panes were related (but, because of this test, the alignment view thought they were not)
| author | Chris Cannam |
|---|---|
| date | Tue, 18 Aug 2020 14:49:36 +0100 |
| parents | f67e9e12e101 |
| children | dc0e47f234a2 |
| files | view/AlignmentView.cpp |
| diffstat | 1 files changed, 15 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/view/AlignmentView.cpp Fri Aug 14 10:46:11 2020 +0100 +++ b/view/AlignmentView.cpp Tue Aug 18 14:49:36 2020 +0100 @@ -192,8 +192,14 @@ int w = width(); int h = height(); - if (m_leftmostAbove > 0) { - + if (m_leftmostAbove >= 0) { + +#ifdef DEBUG_ALIGNMENT_VIEW + SVCERR << "AlignmentView: m_leftmostAbove = " << m_leftmostAbove + << ", we have a relationship with the pane above us: showing " + << "mappings in relation to that" << endl; +#endif + for (const auto &km: m_fromAboveMap) { sv_frame_t af = km.first; @@ -213,7 +219,13 @@ } else if (m_reference != nullptr) { // the below has nothing in common with the above: show things // in common with the reference instead - + +#ifdef DEBUG_ALIGNMENT_VIEW + SVCERR << "AlignmentView: m_leftmostAbove = " << m_leftmostAbove + << ", we have no relationship with the pane above us: showing " + << "mappings in relation to the reference instead" << endl; +#endif + for (const auto &km: m_fromReferenceMap) { sv_frame_t af = km.first;
