Merge pull request #12091 from wizofaus/topstaff-scroll-into-view

Fix #11522 - ensure element is scrolled into view when using top-staff command
This commit is contained in:
RomanPudashkin 2022-06-19 11:01:28 +02:00 committed by GitHub
commit 7227b71bac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -2338,6 +2338,7 @@ void NotationInteraction::selectTopStaff()
}
select({ el }, SelectType::SINGLE, 0);
showItem(el);
resetHitElementContext();
}

View file

@ -164,8 +164,6 @@ mu::engraving::Segment* NotationSelectionRange::rangeStartSegment() const
{
mu::engraving::Segment* startSegment = score()->selection().startSegment();
startSegment->measure()->firstEnabled();
if (!startSegment) {
return nullptr;
}