Fix crash on pasting mesh gradient

Copying a mesh gradient inserts a <script> element into the clipboard document. When pasting, this non-SPItem object must not be added to the selection.

Fixes #5350 (closed)

General thought: Should Inkscape::Selection be restricted to SPItem elements? Other SPObject types have no visual representation on the canvas and cannot be selected.

Merge request reports

Loading