Crash when adding text to a ChordRest

• Jul 3, 2018 - 05:54
Reported version
3.0
Type
Functional
Severity
S2 - Critical
Status
closed
Project

When I try to add text to any chord/rest, MuseScore crashes.

This is a result of commit 6b8a6461f3 to fix #272380: Rehearsal marks from palette (B1) are not generated automatically.

The reason for the crash is that Element* e is assumed to be of type ElementType::REHEARSAL_MARK. This is not a safe assumption, because the cases for several other ElementTypes fall through to this point in the switch statement.


Comments