fix #23460: Much too much trailing space added after notes with ChordLines

This commit is contained in:
lasconic 2014-03-21 18:47:03 +01:00
parent ba44b1f33e
commit 5aa775fd0d

View file

@ -1728,7 +1728,7 @@ void Chord::layoutPitched()
continue;
e->layout();
if (e->type() == CHORDLINE) {
int x = bbox().translated(e->pos()).right();
int x = e->bbox().translated(e->pos()).right();
if (x > _space.rw())
_space.setRw(x);
}
@ -1910,7 +1910,7 @@ void Chord::layoutTablature()
for (Element* e : _el) {
e->layout();
if (e->type() == CHORDLINE) {
int x = bbox().translated(e->pos()).right();
int x = e->bbox().translated(e->pos()).right();
if (x > _space.rw())
_space.setRw(x);
}