From 04d02aafe40b67dcac7f8745fe68f1951c5470d8 Mon Sep 17 00:00:00 2001
From: Matthias Neeracher <neeri@users.sourceforge.net>
Date: Mon, 8 Oct 2007 06:07:34 +0000
Subject: [PATCH] Properly align chord names

---
 Sources/VLSheetViewChords.mm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/Sources/VLSheetViewChords.mm b/Sources/VLSheetViewChords.mm
index e6900dc..e613442 100644
--- a/Sources/VLSheetViewChords.mm
+++ b/Sources/VLSheetViewChords.mm
@@ -246,8 +246,7 @@ std::string NormalizeName(NSString* rawName)
 		) {
 			NSAttributedString * chordName 	= [self stringWithChord:*chord];
 			NSPoint				 chordLoc  	=
-				NSMakePoint(fClefKeyW+(m+at)*fMeasureW+0.5f*kNoteW, 
-							kSystemY+kChordY);
+				NSMakePoint([self noteXInMeasure:m at:at], kSystemY+kChordY);
 			[chordName drawAtPoint:chordLoc];
 			at += chord->fDuration;
 		}