Active style differs from last used style (None changed to unset)

Steps to reproduce:

  • reset preferences
  • open Inkscape
  • (if not in 1.2-dev, double click on pen tool so preferences open and check last used style)
  • switch to pen tool
  • draw a path
  • Shift+click in the palette bar to change the stroke
  • draw a path

What happened?

  • Fill: None is not transferred to active style, but instead becomes Fill: unset
  • this happens in 1.0 too, but since

What should have happened?

  • Fill of last used style should match last used style

Sample attachments:

Version info

  • Inkscape 1.0 (4035a4fb, 2020-05-01) Linux Mint 20
  • Inkscape 1.2-dev (742c897e, 2021-11-07) Linux Mint 20