Skip to content

Conversation

miiizen
Copy link
Contributor

@miiizen miiizen commented Sep 11, 2025

Resolves: #29709

Screenshot 2025-09-11 at 16 50 07

@@ -497,7 +497,8 @@ InterruptionPoints RestLayout::computeInterruptionPoints(const Measure* measure,
for (const Segment* segment = measure->first(SegmentType::ChordRest); segment; segment = segment->next(SegmentType::ChordRest)) {
for (track_idx_t track = sTrack; track < eTrack; ++track) {
EngravingItem* item = segment->element(track);
if (item && item->isRest() && toRest(item)->isGap()) {
const bool gapRest = item->isRest() && toRest(item)->isGap();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now we're using item before nullptr-checking it

@miiizen miiizen force-pushed the 29709-RestAlignInvisible branch from b2d6c3d to 45c6f00 Compare September 12, 2025 09:43
@its-not-nice its-not-nice added the vtests This PR produces approved changes to vtest results label Sep 12, 2025
@mike-spa mike-spa merged commit be68a0f into musescore:master Sep 12, 2025
12 of 13 checks passed
@miiizen miiizen mentioned this pull request Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vtests This PR produces approved changes to vtest results
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rests should 'unalign' when rests (or notes) in secondary voices hidden
4 participants