Merge pull request #515 from mgavioli/fix_string_cursor_in_tab_note_entry

Fix string cursor in TAB note entry.
This commit is contained in:
Maurizio M. Gavioli 2013-10-28 10:32:39 -07:00
commit 4c0c5ea572

View file

@ -2931,15 +2931,19 @@ void ScoreView::cmd(const QAction* a)
else if(cmd == "string-above") {
int strg = _score->inputState().string();
if(strg > 0)
if(strg > 0) {
_score->inputState().setString(strg-1);
moveCursor();
}
}
else if(cmd == "string-below") {
InputState is = _score->inputState();
int maxStrg = _score->staff(is.track() / VOICES)->lines() - 1;
int strg = is.string();
if(strg < maxStrg)
if(strg < maxStrg) {
_score->inputState().setString(strg+1);
moveCursor();
}
}
else if(cmd == "fret-0")
cmdAddFret(0);