Properly align chord names

This commit is contained in:
Matthias Neeracher 2007-10-08 06:07:34 +00:00
parent a01d5ed372
commit 04d02aafe4

View File

@ -246,8 +246,7 @@ std::string NormalizeName(NSString* rawName)
) { ) {
NSAttributedString * chordName = [self stringWithChord:*chord]; NSAttributedString * chordName = [self stringWithChord:*chord];
NSPoint chordLoc = NSPoint chordLoc =
NSMakePoint(fClefKeyW+(m+at)*fMeasureW+0.5f*kNoteW, NSMakePoint([self noteXInMeasure:m at:at], kSystemY+kChordY);
kSystemY+kChordY);
[chordName drawAtPoint:chordLoc]; [chordName drawAtPoint:chordLoc];
at += chord->fDuration; at += chord->fDuration;
} }