Skip to content

Commit

Permalink
fix potential crash when pasting lyrics
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Feb 5, 2015
1 parent c421930 commit fa9aaf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mscore/scoreview.cpp
Expand Up @@ -2474,7 +2474,7 @@ void ScoreView::normalCut()

void ScoreView::editPaste()
{
if (editObject->isText()) {
if (editObject && editObject->isText()) {
if (editObject->type() == Element::Type::LYRICS)
static_cast<Lyrics*>(editObject)->paste(this);
else
Expand Down

0 comments on commit fa9aaf3

Please sign in to comment.