Bug 414692 - The 'null' Line Style does not save.
Summary: The 'null' Line Style does not save.
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Tools/Vector (show other bugs)
Version: unspecified
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-30 16:06 UTC by Tyler Breau
Modified: 2020-08-20 21:40 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
My project where I see the bug (581.77 KB, application/x-krita)
2019-11-30 16:06 UTC, Tyler Breau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tyler Breau 2019-11-30 16:06:42 UTC
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.
Comment 1 Ahab Greybeard 2019-12-02 13:59:33 UTC
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.
Comment 2 Dmitry Kazakov 2020-08-20 21:40:46 UTC
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 :)