diff options
author | Carl Hetherington <carl@carlh.net> | 2011-05-02 22:34:44 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-05-02 22:34:44 +0000 |
commit | 2a1844a28e6a7f80a831057c1617fe509088784b (patch) | |
tree | 3ecc85cbde4465fd8fafb1d2bcb3bac5d7d12592 /gtk2_ardour/piano_roll_header.cc | |
parent | a4b1a1bb14515650d7120b7b2b3ac1874bbf3d5f (diff) |
Fix piano roll to use the same octave numbering as the verbose canvas cursor (#4015).
git-svn-id: svn://localhost/ardour2/branches/3.0@9458 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/piano_roll_header.cc')
-rw-r--r-- | gtk2_ardour/piano_roll_header.cc | 2 |
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); |