Skip to content

Commit

Permalink
Merge pull request #23928 from mike-spa/fixAnotherAnchorCrash
Browse files Browse the repository at this point in the history
Fix another anchor crash
  • Loading branch information
RomanPudashkin authored Aug 7, 2024
2 parents 96f6316 + 3bea65c commit 23820f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/engraving/dom/line.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,10 @@ Segment* LineSegment::findSegmentForGrip(Grip grip, PointF pos) const
sys = foundSystems[0];
}

if (!sys) {
return nullptr;
}

// Restrict searching segment to the correct staff
pos.setY(sys->staffCanvasYpage(oldStaffIndex));

Expand Down

0 comments on commit 23820f3

Please sign in to comment.