Skip to content

Commit 1d73047

Browse files
authored
fix: added 9 string guitars to gtp import (musescore#25877)
1 parent 6dc9626 commit 1d73047

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/importexport/guitarpro/internal/importgtp.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2853,10 +2853,11 @@ static void createLinkedTabs(MasterScore* score)
28532853
StaffTypes::TAB_5SIMPLE,
28542854
StaffTypes::TAB_6SIMPLE,
28552855
StaffTypes::TAB_7SIMPLE,
2856-
StaffTypes::TAB_8SIMPLE
2856+
StaffTypes::TAB_8SIMPLE,
2857+
StaffTypes::TAB_9SIMPLE,
28572858
};
28582859

2859-
size_t index = (lines >= 4 && lines <= 8) ? lines - 4 : 2;
2860+
size_t index = (lines >= 4 && lines <= 9) ? lines - 4 : 2;
28602861

28612862
dstStaff->setStaffType(fr, *StaffType::preset(types.at(index)));
28622863
dstStaff->setLines(fr, static_cast<int>(lines));

0 commit comments

Comments
 (0)