Skip to content

Commit b77c9f7

Browse files
committed
fixup! Fix jumps
1 parent 936f80c commit b77c9f7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/engraving/rendering/score/tlayout.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3614,8 +3614,10 @@ void TLayout::layoutJump(const Jump* item, Jump::LayoutData* ldata)
36143614

36153615
AlignH position = item->position();
36163616

3617-
const Measure* measure = toMeasure(item->parentItem());
3618-
double xAdj = measure ? measure->width() : 0.0;
3617+
// ignore courtesy keysig, timesig, but fall back if needed
3618+
Measure* measure = toMeasure(item->parent());
3619+
const BarLine* bl = measure->endBarLine();
3620+
double xAdj = bl ? bl->segment()->x() + bl->ldata()->bbox().width() : measure->width();
36193621

36203622
bool avoidBarline = item->staffIdx() != 0 && position != AlignH::HCENTER;
36213623
if (avoidBarline) {

0 commit comments

Comments
 (0)