fix #280366: voltas should ignore disabled header segments

This commit is contained in:
MarcSabatella 2018-12-20 14:10:20 -07:00
parent b8cddb9557
commit 0a5e55ebdf

View file

@ -628,12 +628,12 @@ QPointF SLine::linePos(Grip grip, System** sys) const
const Measure* m;
if (grip == Grip::START) {
m = startMeasure();
// start after clef/key
// start after clef/keysig/timesig/barline
qreal offset = 0.0;
Segment* s = m->first(SegmentType::ChordRest);
if (s) {
s = s->prev();
if (s) {
if (s && s->enabled()) {
offset = s->x();
Element* e = s->element(staffIdx() * VOICES);
if (e)