Skip to content

Commit

Permalink
Merge pull request #2327 from MarcSabatella/91911-palette-more-crash
Browse files Browse the repository at this point in the history
fix #91911: crash customizing palette with 'More Elements' enabled
  • Loading branch information
lasconic committed Jan 9, 2016
2 parents 88f8371 + fe829f7 commit ed67dc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mscore/palette.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,8 @@ PaletteCell* Palette::append(Element* s, const QString& name, QString tag, qreal
PaletteCell* cell = new PaletteCell;
int idx;
if (_moreElements) {
idx = cells.size()-2;
cells.insert(cells.size()-1, cell);
cells.insert(cells.size() - 1, cell);
idx = cells.size() - 2;
}
else {
cells.append(cell);
Expand Down

0 comments on commit ed67dc1

Please sign in to comment.