Created attachment 124212 [details] My project where I see the bug SUMMARY I'm trying to use Tool Options -> Line Styles to disable the border around some vectors. I would make my changes, save the project, and then close. When re-opening the project the Line Styles would be set back to a solid line (from no line). I'm not sure how to create a new project re-producing this, so I'll provide my project. STEPS TO REPRODUCE Note: Some of the terminology will be referencing stuff in my project. 1. Select any number of tiles in the Tiles Area layer. 2. Set Line Style to no line in Tool Options. 3. Save the project. 4. Close the project. 5. Open the project. 6. See Line Styles have changed back to solid line. OBSERVED RESULT Line Styles do not save. EXPECTED RESULT Line Styles should save. SOFTWARE/OS VERSIONS Windows: 10 macOS: N/A Linux/KDE Plasma: (available in About System) KDE Plasma Version: N/A KDE Frameworks Version: LGPLv2.1+ Qt Version: GPLv2 + GPLv3 + LGPLv2.1 + LGPLv3 ADDITIONAL INFORMATION I just recently found out I could also simply disable the borders by clicking the square with an red X. From what I can tell, this options DOES save properly. It is NOT to be confused with setting the Line Style.
I can Confirm this for 4.2.6 onwards to the latest 4.3.0 prealpha. I've edited the title to give more detail of the problem. If you apply a null line style (blank icon) to a vector then this is displayed on screen correctly. If you Export the layer to .svg then the null line style is converted to a zero width line. If you Save the file and re-open it, the line width has been saved as the value that was there before the null line style was applied. Examination of the content.svg file of the layer in the .kra file confirms this. Krita correctly saves the various dotted/dashed line styles with a stroke-dasharray tag. For the null line style, it decides to use a zero width line, which is reasonable. (Inkscape uses a stroke-dasharray tag to create the null line style.) There seems to be some kind of disconnect between the internal/on-screen representation, which is correct and exports ok, and the the saved .svg code.
The bug is not reproducible in Krita 4.3.0 anymore. I think I have fixed the bug like that a couple of months ago :)