13
0

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
This commit is contained in:
Carl Hetherington 2011-05-02 22:34:44 +00:00
parent a4b1a1bb14
commit 2a1844a28e

View File

@ -445,7 +445,7 @@ PianoRollHeader::on_expose_event (GdkEventExpose* ev)
double y = floor(_view.note_to_y(i)) - 0.5f; double y = floor(_view.note_to_y(i)) - 0.5f;
double note_height = floor(_view.note_to_y(i - 1)) - y; double note_height = floor(_view.note_to_y(i - 1)) - y;
int cn = i / 12; int cn = i / 12 - 1;
s << "C" << cn; s << "C" << cn;
//cr->get_text_extents(s.str(), te); //cr->get_text_extents(s.str(), te);