Skip to content

Commit

Permalink
fix #112611: add repeat barlines to Repeats palette
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz authored and lasconic committed May 25, 2016
1 parent eef05de commit a92cdec
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions mscore/menus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,23 @@ Palette* MuseScore::newRepeatsPalette()
sp->append(jp, qApp->translate("jumpType", jumpTypeTable[i].userText.toUtf8().constData()));
}

for (unsigned i = 0; i < BarLine::barLineTableSize(); ++i) {
BarLineTableItem bti = BarLine::barLineTableItem(i);
switch (bti.type) {
case BarLineType::START_REPEAT:
case BarLineType::END_REPEAT:
case BarLineType::END_START_REPEAT:
break;
default:
continue;
}

BarLine* b = new BarLine(gscore);
b->setBarLineType(bti.type);
PaletteCell* cell= sp->append(b, qApp->translate("Palette", bti.name));
cell->drawStaff = false;
}

return sp;
}

Expand Down

0 comments on commit a92cdec

Please sign in to comment.