Skip to content

Commit

Permalink
fix: gtp import steel guitar (#26204)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekirin authored Jan 22, 2025
1 parent 15d1f4d commit 2ef0996
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/importexport/guitarpro/internal/importgtp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2847,9 +2847,10 @@ static void createLinkedTabs(MasterScore* score)
StaffTypes::TAB_7SIMPLE,
StaffTypes::TAB_8SIMPLE,
StaffTypes::TAB_9SIMPLE,
StaffTypes::TAB_10SIMPLE,
};

size_t index = (lines >= 4 && lines <= 9) ? lines - 4 : 2;
size_t index = (lines >= 4 && lines <= 10) ? lines - 4 : 2;

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

0 comments on commit 2ef0996

Please sign in to comment.