@@ -1015,17 +1015,17 @@ TieSegment* SlurTieLayout::tieLayoutFor(Tie* item, System* system)
1015
1015
if (item->slurDirection () == DirectionV::AUTO) {
1016
1016
bool simpleException = st && st->isSimpleTabStaff ();
1017
1017
if (st && st->isSimpleTabStaff ()) {
1018
- item->m_up = isUpVoice (c1->voice ());
1018
+ item->setUp ( isUpVoice (c1->voice () ));
1019
1019
} else {
1020
1020
if (c1->measure ()->hasVoices (c1->staffIdx (), c1->tick (), c1->actualTicks ())) {
1021
1021
// in polyphonic passage, ties go on the stem side
1022
- item->m_up = simpleException ? isUpVoice (c1->voice ()) : c1->up ();
1022
+ item->setUp ( simpleException ? isUpVoice (c1->voice ()) : c1->up () );
1023
1023
} else {
1024
- item->m_up = !c1->up ();
1024
+ item->setUp ( !c1->up () );
1025
1025
}
1026
1026
}
1027
1027
} else {
1028
- item->m_up = item->m_slurDirection == DirectionV::UP ? true : false ;
1028
+ item->setUp ( item->slurDirection () == DirectionV::UP ? true : false ) ;
1029
1029
}
1030
1030
item->fixupSegments (1 );
1031
1031
TieSegment* segment = item->segmentAt (0 );
@@ -1133,13 +1133,13 @@ void SlurTieLayout::tiePos(Tie* item, SlurPos* sp)
1133
1133
double x2, y2;
1134
1134
1135
1135
if (sc->notes ().size () > 1 || (ec && ec->notes ().size () > 1 )) {
1136
- item->_isInside = true ;
1136
+ item->setIsInside ( true ) ;
1137
1137
} else {
1138
- item->_isInside = false ;
1138
+ item->setIsInside ( false ) ;
1139
1139
}
1140
1140
const double smallInset = item->isInside () ? 0.0 : 0.125 ; // 1/8 spatium, slight visual adjust so that ties don't hit the center
1141
1141
1142
- sp->p1 = sc->pos () + sc->segment ()->pos () + sc->measure ()->pos ();
1142
+ sp->p1 = sc->pos () + sc->segment ()->pos () + sc->measure ()->pos ();
1143
1143
1144
1144
// ------p1
1145
1145
y1 = item->startNote ()->pos ().y ();
@@ -1168,20 +1168,20 @@ void SlurTieLayout::tiePos(Tie* item, SlurPos* sp)
1168
1168
1169
1169
// ensure that horizontal ties remain horizontal
1170
1170
if (isHorizontal) {
1171
- y1 = item->m_up ? std::min (y1, y2) : std::max (y1, y2);
1172
- y2 = item->m_up ? std::min (y1, y2) : std::max (y1, y2);
1171
+ y1 = item->up () ? std::min (y1, y2) : std::max (y1, y2);
1172
+ y2 = item->up () ? std::min (y1, y2) : std::max (y1, y2);
1173
1173
}
1174
1174
1175
- if (item->_isInside ) {
1175
+ if (item->isInside () ) {
1176
1176
x1 = item->startNote ()->pos ().x () + hw; // the offset for these will be decided in TieSegment::adjustX()
1177
1177
} else {
1178
- if (sc->stem () && sc->stem ()->visible () && sc->up () && item->m_up ) {
1178
+ if (sc->stem () && sc->stem ()->visible () && sc->up () && item->up () ) {
1179
1179
// usually, outside ties start in the middle of the notehead, but
1180
1180
// for up-ties on up-stems, we'll start at the end of the notehead
1181
1181
// to avoid the stem
1182
1182
x1 = item->startNote ()->pos ().x () + hw;
1183
1183
} else {
1184
- x1 = item->startNote ()->outsideTieAttachX (item->m_up );
1184
+ x1 = item->startNote ()->outsideTieAttachX (item->up () );
1185
1185
}
1186
1186
}
1187
1187
if (!(item->up () && sc->up ())) {
@@ -1201,11 +1201,11 @@ void SlurTieLayout::tiePos(Tie* item, SlurPos* sp)
1201
1201
if (item->isInside ()) {
1202
1202
x2 = item->endNote ()->x ();
1203
1203
} else {
1204
- if (ec->stem () && ec->stem ()->visible () && !ec->up () && !item->m_up ) {
1204
+ if (ec->stem () && ec->stem ()->visible () && !ec->up () && !item->up () ) {
1205
1205
// as before, xo should account for stems that could get in the way
1206
1206
x2 = item->endNote ()->x ();
1207
1207
} else {
1208
- x2 = item->endNote ()->outsideTieAttachX (item->m_up );
1208
+ x2 = item->endNote ()->outsideTieAttachX (item->up () );
1209
1209
}
1210
1210
}
1211
1211
if (!(!item->up () && !ec->up ())) {
0 commit comments