Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #305253: fix assertion failure on adding text frame with no text #6141

Merged

Conversation

dmitrio95
Copy link
Contributor

Resolves: https://musescore.org/en/node/305253

An alternative to 18e625b way to
fix the assertion failure. The solution in this commit does not try
to remove the text belonging to text frame (as it is managed by text
frame itself) and does not try to modify undo stack further in case
of adding empty text frame.

This solution has partially been described in #6127 (comment) but I implemented only a part with not trying to remove the empty TBox text. This seems to be the right thing to do with TBoxes and is enough to fix both the assertion failure and the potential incorrect behavior of endEdit() regarding undo stack entries management.

An alternative to 18e625b way to
fix the assertion failure. The solution in this commit does not try
to remove the text belonging to text frame (as it is managed by text
frame itself) and does not try to modify undo stack further in case
of adding empty text frame.
@anatoly-os anatoly-os merged commit 9ad77a4 into musescore:3.x May 28, 2020
@dmitrio95 dmitrio95 deleted the 305253-text-frame-assertion-failure branch May 28, 2020 23:07
anatoly-os added a commit that referenced this pull request Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants