[TAB] Crash when pressing numbers/letters in a different voice

• Jan 6, 2020 - 13:43
Reported version
3.4
Priority
P1 - High
Type
Functional
Frequency
Few
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
Yes
Workaround
No
Project

OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 3.4.0.9337, revision: 684f74e

1) "Tablature for Guitar" Template (here, a few measures: tab test.mscz )
2) Press "N"
3) Type 1 (or A)
4) Change voice, eg voice 2 (Ctrl + Alt + 2) or with button in toolbar
5) Type again 1 (or A)

------- > Crash


Comments

Title [TAB] Crash when pressing numbers/letters in a different voice [TAB - 3.4 beta] Crash when pressing numbers/letters in a different voice
Title [TAB - 3.4 beta] Crash when pressing numbers/letters in a different voice [TAB] Crash when pressing numbers/letters in a different voice
Status PR created fixed

Fixed in branch master, commit 4732e794c1

_fix #299369: crash when pressing numbers/letters in a different voice

Use staff(pos.staffIdx)->staffType(is.tick()) to make sure nullptr won't emerge._

Fix version
3.4.2