Skip to content

Commit

Permalink
Merge pull request #1833 from MarcSabatella/49431-empty-text-crash
Browse files Browse the repository at this point in the history
fix #49431: assert failure hitting Enter in empty text
  • Loading branch information
lasconic committed Mar 3, 2015
2 parents 441a3cc + 669ae4a commit 8bfa3b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libmscore/text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,8 @@ TextBlock TextBlock::split(int column)
}
}
TextFragment tf("");
tf.format = _text.last().format;
if (_text.size() > 0)
tf.format = _text.last().format;
tl._text.append(tf);
return tl;
}
Expand Down

0 comments on commit 8bfa3b1

Please sign in to comment.