Lower bound on Complexity value for Simplify path effect is too low.
Summary:
The lower bound on the Complexity value for the Simplify path effect is set to 0.01. This value makes the path more complex, increases the node count by orders of magnitude and causes performance problems.
The lower bound for that value should be set to 1.
When used on complex paths (the intended use case) with very low Complexity values this path effect has the potential to effectively freeze Inkscape.
I'm writing this after Inkscape hang on me because I pulled the slider to far to the left. Scarry when you have unsaved work.
Steps to reproduce:
- open Inkscape
- draw a circle
- add a Simply path effect to the circle
- set Complexity value to 0
What happened?
- complexity value defaults to 0.01
- the circle is now composed of 1024 nodes
What should have happened?
- complexity value defaults to 1
- the circle is now composed of 18 nodes
Version info
Inkscape 1.3.2 (091e20e, 2023-11-25, custom)
GLib version: 2.78.1
GTK version: 3.24.39
glibmm version: 2.66.6
gtkmm version: 3.24.8
libxml2 version: 2.11.5
libxslt version: 1.1.38
Cairo version: 1.18.0
Pango version: 1.50.14
HarfBuzz version: 8.2.2
OS version: Windows 11 22H2