Preserve accidental information in triplets processing

This commit is contained in:
Matthias Neeracher 2011-08-29 03:53:34 +02:00
parent e66a6fa230
commit e5347a3dd9

View File

@ -265,6 +265,8 @@ void VLMeasure::DecomposeNotes(const VLProperties & prop, VLNoteList & decompose
// Prefer further triplets // Prefer further triplets
// //
if (prevTriplets) { if (prevTriplets) {
prevVisual = (prevVisual & ~VLNote::kAccidentalsMask)
| (p.fVisual & VLNote::kAccidentalsMask);
if (p.fDuration >= 2*prevTripDur) { if (p.fDuration >= 2*prevTripDur) {
p.fDuration = 2*prevTripDur; p.fDuration = 2*prevTripDur;
if (prevTriplets == 1) { if (prevTriplets == 1) {