]> git.donarmstrong.com Git - lilypond.git/commitdiff
regression + bugfix: auto-tab-string
authorRune Zedeler <rune@lilypond.org>
Mon, 4 Jun 2007 06:33:19 +0000 (08:33 +0200)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 8 Jun 2007 01:59:54 +0000 (22:59 -0300)
In 2.10+2.11 the TabStaff auto-string-calculator won't use the first
string:
http://lilypond.org/doc/v2.10/Documentation/user/lilypond/lily-c60b7608c6
The 2nd e is mussing on the tab.
This is a regression from 2.8:
http://lilypond.org/doc/v2.8/Documentation/user/lilypond/lily-1992430156.png

Patch attached

lily/tab-note-heads-engraver.cc

index 0d56bb44bb12b427dcc883cfeecb42141b4180a7..045e3f3b6dfabb45c5c42ac349777f5311fdfe19 100644 (file)
@@ -99,7 +99,7 @@ Tab_note_heads_engraver::process_music ()
          SCM scm_pitch = event->get_property ("pitch");
          int min_fret = robust_scm2int (get_property ("minimumFret"), 0);
          int start = (high_string_one) ? 1 : string_count;
-         int end = (high_string_one) ? string_count : 1;
+         int end = (high_string_one) ? string_count+1 : 0;
 
          int i = start;
          do