summaryrefslogtreecommitdiff
path: root/gtk2_ardour/piano_roll_header.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/piano_roll_header.cc')
-rw-r--r--gtk2_ardour/piano_roll_header.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/piano_roll_header.cc b/gtk2_ardour/piano_roll_header.cc
index 4bb8250fea..02d656d698 100644
--- a/gtk2_ardour/piano_roll_header.cc
+++ b/gtk2_ardour/piano_roll_header.cc
@@ -445,7 +445,7 @@ PianoRollHeader::on_expose_event (GdkEventExpose* ev)
double y = floor(_view.note_to_y(i)) - 0.5f;
double note_height = floor(_view.note_to_y(i - 1)) - y;
- int cn = i / 12;
+ int cn = i / 12 - 1;
s << "C" << cn;
//cr->get_text_extents(s.str(), te);