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:
commit
7227b71bac
2 changed files with 1 additions and 2 deletions
|
@ -2338,6 +2338,7 @@ void NotationInteraction::selectTopStaff()
|
|||
}
|
||||
|
||||
select({ el }, SelectType::SINGLE, 0);
|
||||
showItem(el);
|
||||
resetHitElementContext();
|
||||
}
|
||||
|
||||
|
|
|
@ -164,8 +164,6 @@ mu::engraving::Segment* NotationSelectionRange::rangeStartSegment() const
|
|||
{
|
||||
mu::engraving::Segment* startSegment = score()->selection().startSegment();
|
||||
|
||||
startSegment->measure()->firstEnabled();
|
||||
|
||||
if (!startSegment) {
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue