Skip to content

Commit

Permalink
Merge pull request #22022 from mathesoncalum/21103-slur_trem_crash-430
Browse files Browse the repository at this point in the history
Fix #21103: Prevent crash with certain slur/trem combinations (4.3.0)
  • Loading branch information
RomanPudashkin committed Mar 22, 2024
2 parents 83396f9 + 8b57abc commit dd39a7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engraving/rendering/dev/slurtielayout.cpp
Expand Up @@ -831,7 +831,7 @@ void SlurTieLayout::slurPos(Slur* item, SlurTiePos* sp, LayoutContext& ctx)

// in these cases, layout end of slur to stem
double beamWidthSp = beam2 ? ctx.conf().styleS(Sid::beamWidth).val() : 0;
Note* note = item->up() ? sc->upNote() : sc->downNote();
Note* note = item->up() ? ec->upNote() : ec->downNote();
double stemHeight = stem2 ? stem2->length() + (beamWidthSp / 2) : defaultStemLengthEnd(trem2);
double offset3 = std::max(beamClearance * ec->intrinsicMag(), minOffset) * _spatium;
double sh = stemHeight + offset3;
Expand Down

0 comments on commit dd39a7c

Please sign in to comment.