Crash dragging from visibility icon after deleting a layer (Layers dialog)

Summary:

Internal error when I am trying to performs action with little time out between them.

Steps to reproduce:

  • Open MLP-0513.svg
  • Open layers Windows
  • Rename "Body - right hind leg back part" to "DEL Body - right hind leg back part"
  • Open above layer "Body - middle part" (open not selecting it)
  • Delete the currently selected layer "DEL Body - right hind leg back part"
  • Start changing the visibility of above layer "Body - middle part" or it's objects, and accidentally drag on the eye icon

What happened?

Message "Inkscape has encountered an internal error and will close"

Backtrace-in-13dev-3c2958b9eb.txt

What should happened

Inkscape should not have encountered an internal error and just change the visibility of objects

Version info

Inkscape 1.2 (dc2aedaf, 2022-05-15)

GLib version:     2.72.1
GTK version:      3.24.33
glibmm version:   2.66.4
gtkmm version:    3.24.6
libxml2 version:  2.9.14
libxslt version:  1.1.35
Cairo version:    1.17.6
Pango version:    1.50.7
HarfBuzz version: 4.2.1
OS version:       Windows 7 SP1

Reproduction video: https://disk.yandex.ru/i/bduFJMlJjwpatw

SVG attached MLP-0513.svg

Edited by Nathan Lee