Skip to content

Commit

Permalink
Merge pull request #22014 from mathesoncalum/21103-slur_trem_crash
Browse files Browse the repository at this point in the history
Fix #21103: Prevent crash with certain slur/trem combinations (Master)
  • Loading branch information
RomanPudashkin committed Mar 22, 2024
2 parents 7b7b83c + bb1283d commit 14ede0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engraving/rendering/dev/slurtielayout.cpp
Expand Up @@ -833,7 +833,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 14ede0f

Please sign in to comment.