Line-height stops to update when switching units for baseline spacing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Confirmed
|
Medium
|
Unassigned |
Bug Description
In both 0.92.x and current master
- Inkscape 0.92.2pre0 (f9bf460709, 2017-07-30)
- Inkscape 0.92+devel (d0390b9f4f, 2017-07-31)
when switching units for baseline spacing the actual line-height stops updating (i.e. can't be set via UI anymore).
For example to reproduce:
- open a new document (mm based template)
- write two lines of random text with default text tool settings
- activate "Show style of outermost text element"
- line height will be "1.25" (relative)
- change it to "2" and observe line height to change
- switch baseline spacing unit to "%" (will now have a value of "200.00")
- change it to "100" and observe *no* change in line height
Source of the issue:
When switching the baseline spacing unit the line-height attribute is set on the individual <tspans> of the lines (even though "Show style of outermost text element" is enabled) making any further changes to the line-height of the outermost text element non-effective.
As a workaround the (workaround button?) "?" can be clicked to unset the line-height attribute of the children again.