divisor attribute for feconvolvematrix (default value UI)
Bug #193926 reported by
Felipe "Juca" Sanches
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Triaged
|
Low
|
Unassigned |
Bug Description
At the filter effects dialog, the user can set the divisor attribute (of the feconvolvematrix filter primitive).
The SVG spec says that:
"The default value is the sum of all values in kernelMatrix, with the exception that if the sum is zero, then the divisor is set to 1."
The divisor parameter should be updated in sync with the matrix attribute widget
Changed in inkscape: | |
assignee: | ivan-louette → nobody |
tags: | added: filters-svg |
To post a comment you must log in.
The following patch implements the following solution:
- change the 'divisor' slider range to accept negative values
- allow a SpinSlider to change value without affecting the underlying attribute
So as long as the user does not touch the slider, the divisor value is set to the kernel elements sum as the spec requires.
As soon as the slider is used, the divisor value is considered set and will not be synched with the kernel matrix anymore.
Known issue: deleting the divisor attribute in the XML editor set the attribute back to its default, but the slider is not updated correctly.