When, for a change in the cross-measure value setting, notes change from stemmed to stemless (or vice versa), stems are not properly removed or added.

This commit is contained in:
Maurizio M. Gavioli 2013-08-28 10:48:28 +02:00
parent e02be8bf88
commit e2c5abfa1d

View file

@ -1811,7 +1811,10 @@ void Chord::layoutTablature()
void Chord::crossMeasureSetup(bool on)
{
if (!on) {
_crossMeasure = CROSSMEASURE_UNKNOWN;
if (_crossMeasure != CROSSMEASURE_UNKNOWN) {
_crossMeasure = CROSSMEASURE_UNKNOWN;
layoutStem1();
}
return;
}
if (_crossMeasure == CROSSMEASURE_UNKNOWN) {
@ -1828,8 +1831,9 @@ void Chord::crossMeasureSetup(bool on)
// if duration can be expressed as a single duration
// apply cross-measure modification
if(durList.size() == 1) {
tempCross = CROSSMEASURE_FIRST;
_crossMeasure = tempCross = CROSSMEASURE_FIRST;
_crossMeasureTDur = durList[0];
layoutStem1();
}
}
_crossMeasure = tempCross;