Ctrl+Click with calligraphy tool crashes if 0 stroke width in active style

Summary:

It's such a weird issue that I have no idea the reason why cause crash. Provide the backtrace below :D

Steps to reproduce:

  • open Inkscape
  • Use tweak object tool
  • Change to calligraphic tool
  • Click left button and press Ctrl
  • If no crash, change the Stroke width to 0 (so that the tool will draw 0-width strokes). Note: this is not the same as Stroke: None.
  • Click left button and press Ctrl

What happened?

Crash

What should have happened?

Not crash

Sample attachments:

Brush_Strokes

inkscape_backtrace.txt

Version info

Inkscape 1.2-dev (f20b72e, 2022-01-27)
OS Version: Windows 10, 21H1
Edited by Nathan Lee