Skip to content

Commit

Permalink
Merge pull request #4652 from jthistle/283546-removing-text-frame-crash
Browse files Browse the repository at this point in the history
fix #283546: removing text frame causes second corrupt one to appear
  • Loading branch information
anatoly-os committed Mar 8, 2019
1 parent 82a0f71 commit 17de78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/score.cpp
Expand Up @@ -1469,7 +1469,7 @@ void Score::removeElement(Element* element)
measures()->remove(mb);
System* system = mb->system();
Page* page = system->page();
if (element->isVBox() && system->measures().size() == 1) {
if (element->isVBoxBase() && system->measures().size() == 1) {
auto i = std::find(page->systems().begin(), page->systems().end(), system);
page->systems().erase(i);
mb->setSystem(0);
Expand Down

0 comments on commit 17de78c

Please sign in to comment.