fix warnings reg. wrong order of evaluation
This commit is contained in:
parent
3394f76c3a
commit
f39e4317d9
3 changed files with 3 additions and 3 deletions
|
@ -97,7 +97,7 @@ void ChordLine::layout()
|
|||
if (_chordLineType == ChordLineType::PLOP)
|
||||
setPos(p.x() + note->headWidth() * .25, p.y() - note->headHeight() * .75);
|
||||
if (_chordLineType == ChordLineType::SCOOP) {
|
||||
qreal x = p.x() + chord()->up() ? note->headWidth() * .25 : _spatium * -.2;
|
||||
qreal x = p.x() + (chord()->up() ? note->headWidth() * .25 : _spatium * -.2);
|
||||
setPos(x, p.y() + note->headHeight() * .75);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1125,7 +1125,7 @@ void Note::endDrag()
|
|||
if (staff->isTabStaff()) {
|
||||
// on TABLATURE staves, dragging a note keeps same pitch on a different string (if possible)
|
||||
// determine new string of dragged note (if tablature is upside down, invert _lineOffset)
|
||||
int nString = _string + staff->staffType()->upsideDown() ? -_lineOffset : _lineOffset;
|
||||
int nString = _string + (staff->staffType()->upsideDown() ? -_lineOffset : _lineOffset);
|
||||
_lineOffset = 0;
|
||||
// get a fret number for same pitch on new string
|
||||
const StringData* strData = staff->part()->instr()->stringData();
|
||||
|
|
|
@ -437,7 +437,7 @@ bool TrackList::write(int track, Measure* measure) const
|
|||
break;
|
||||
// add the element in its own segment;
|
||||
// but KeySig has to be at start of (current) measure
|
||||
segment = m->getSegment(e, m->tick() + (e->type() == ElementType::KEYSIG) ? 0 : pos.ticks());
|
||||
segment = m->getSegment(e, m->tick() + ((e->type() == ElementType::KEYSIG) ? 0 : pos.ticks()));
|
||||
Element* ne = e->clone();
|
||||
ne->setScore(score);
|
||||
ne->setTrack(track);
|
||||
|
|
Loading…
Reference in a new issue