Skip to content

Commit

Permalink
fix #298108 : Sporadic Crash when dragging a Brace from palette to sc…
Browse files Browse the repository at this point in the history
…ore using Bravura
  • Loading branch information
AntonioBL committed Mar 2, 2020
1 parent 56bb365 commit 5daa2a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libmscore/bracket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Bracket::Bracket(Score* s)
_firstStaff = 0;
_lastStaff = 0;
_bi = 0;
_braceSymbol = SymId::noSym;
setGenerated(true); // brackets are not saved
}

Expand Down Expand Up @@ -152,6 +153,8 @@ void Bracket::layout()
_shape.add(bbox());
}
else {
if (_braceSymbol == SymId::noSym)
_braceSymbol = SymId::brace;
qreal h = h2 * 2;
qreal w = symWidth(_braceSymbol) * _magx;
bbox().setRect(0, 0, w, h);
Expand Down

0 comments on commit 5daa2a0

Please sign in to comment.