Pasting image causes a crash

• May 5, 2015 - 02:29
Type
Functional
Severity
S2 - Critical
Status
closed
Project

Nigthly dce3f94/ Windows7

1) Open this file: test file.mscz

2) Select the image located in the first vertical frame -> Right-click -> Copy

3) Past this image in the second empty vertical frame (or in the first one)

Result: crash

- Works with this Nightly: 0c2172d
-Not with this one: 6000c0e

Might be a side effect of this commit ?: https://github.com/musescore/MuseScore/commit/77389b33b8db224345e991992…

- First reported here: https://musescore.org/fr/node/58901


Comments

I think it's any paste of any image? At least it seems to be for me. I see img.rasterDoc is null; we presumably need to check before dereferencing. Not sure about the SVG case.