Inconsistent behavior with "Unset paint" for objects with fill from class
Description modified based off of discussion to identify the problem. Original report reproduced below.
Steps to replicate
- Create three rectangles (all with the same fill color)
- Select all and apply Extensions > Stylesheet > Merge Styles into CSS... (default class name)
- Change the fill of a rectangle
- (optional: change the fill to the original color. This is different from Undo because the color is now set in the class and the rectangle)
- Try to unset the fill now with the Fill and Stroke Dialog > Unset Paint button
- Press "Unset Paint" a three more times
- (fill now appears unset in the dialog)
- Deselect and reselect the rectangle
- (fill now appears to be the fill of the class)
The Unset Paint option does work under the hood for the rectangle, but doesn't touch the class fill.
Expected Behavior
- There should be some indication that the fill was unset in the first click (low priority)
- The dialog shouldn't switch over to Unset only after the 3rd click (especially since reselecting the rectangle shows the fill of the class again)
- Perhaps some indication that the fill is from a class
Original Report:
Hello!I have created a map of regions (svg elements) for The Netherlands and Belgium. I want to group them together into two language groups, to be able to display those areas with custom visual in Power BI. However, Power BI needs the fill property of the svg elements to be set to undefined, so it can be inherited.
The problem here is that when I try to set the property to "Unset paint" under Fill and Stroke menu of the individual elements, the program doesn't allow me to do that. It automatically jumps back to the "Flat color" fill.
Inscape version: Inkscape 0.92.4 (5da689c313, 2019-01-14)
Operating system: Windows 10, Version 1903