Changing stroke width in statusbar is wrong with units selected other than 'px'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Low
|
Eman Modnar |
Bug Description
There's a cool feature in Inkscape that one can change stroke width by moving mouse cursor on top of stroke width indicator in the statusbar and then scrolling or dragging ('gestures' or 'rotatable stroke width' feature).
If document's default units is not 'px' or if they been changed in the context menu of the stroke width indicator to units other than 'px', e.g. 'mm' or 'in', then width of a stroke changes somewhat unpredictably.
Steps to reproduce:
1. Create an object with a thick stroke
2. Do a right click on the stroke indicator in the statusbar and choose 'in' (inches)
3. Scroll on top of the indicator or drag it to change stroke width (width drops almost to zero no matter which direction you scroll to).
--
I've made some investigation and have found that new stroke width is not converted to proper units and remain in 'px' after preliminary conversion.
Patch attached. Also I changed the multiplication factor for stroke enlargement with 'gesture' to 10x as 4x is too few in my opinion.
Thank you.
Related branches
summary: |
- Changing storke width in statusbar is wrong with units selected other + Changing stroke width in statusbar is wrong with units selected other than 'px' |
tags: | added: stroke ui |
Patch updated. In 'gesture', exponential function for stroke width is more smooth and natural than mixture of linear and quadratic. Also I decided to increase the multiplication factor to 50x.