https://bugs.kde.org/show_bug.cgi?id=407683

            Bug ID: 407683
           Summary: Vector Object Line Style propogates to other objects
           Product: krita
           Version: nightly build (please specify the git hash!)
          Platform: Debian stable
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Tools/Vector
          Assignee: krita-bugs-n...@kde.org
          Reporter: ahab.greybe...@hotmail.co.uk
  Target Milestone: ---

Created attachment 120159
  --> https://bugs.kde.org/attachment.cgi?id=120159&action=edit
A sample .kra file of vector objects to test with

SUMMARY

This bug happens in the 4.1.7 appimage and the latest 4.2.0-beta nightly
appimage. It happens in recent previous appimages in slightly different ways.
The end result is the same. The description below is for the latest nightly
appimage.

If a line style is applied to a vector object in a layer, all objects that were
created after that object will have the line style applied to them if the image
is saved and closed then the file reopened, even though the line style is not
present for those other objects in the .kra file.
If the file is reopened and the line style removed from the object, the later
objects will still have the line style applied on-screen and they will all have
the line style applied to them in a subsequently saved .kra file.
It gets complicated, see Additional Information.

The attached file 'VectorObjects.kra' contains objects that were created in
order from left to right and top to bottom. I suggest you make a backup copy of
this before doing any work on it.

STEPS TO REPRODUCE
1. Open VectorObjects.kra, select the blue circle then give it a line style of
fine dots.
2. Save it and Close it. Examine the .svg layer contents of VectorObjects.kra
and note that only the blue circle has stroke-dasharray="{some numbers}" in its
properties/parameters.
3. Open VectorObjects.kra and note that all objects after the blue circle have
dashed line style. Select the blue circle and change its line style to 'solid'.
Note that the following objects still have dashed line style.
4. Save it and Close it. Examine the .svg layer contents of VectorObjects.kra
and note that the blue circle no longer has a stroke-dasharray applied but the
objects after it all have that stroke-dasharray applied

OBSERVED RESULT
As noted above

EXPECTED RESULT
The 'spreading' of line style should not happen

SOFTWARE/OS VERSIONS
Krita

 Version: 4.2.0-beta (git 4cb9902)
 Languages: en_GB, en
 Hidpi: true

Qt

  Version (compiled): 5.12.2
  Version (loaded): 5.12.2

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 4.9.0-9-amd64
  Pretty Productname: Debian GNU/Linux 9 (stretch)
  Product Type: debian
  Product Version: 9

ADDITIONAL INFORMATUION

This is limited to the layer in which it happens and other layers are not
affected.

The process by which this happens has changed in nightly builds over the past
few days. Sometimes it shows in on-screen presentation before saving. Sometimes
it only shows after saving and reopening.

If a line style of 'null' is selected (the blank space at the top of the line
style drop down list) then this is applied but it is not saved in the .kra file
and not present after reopening. Also, it can't be exported to a .svg file.

I think that a line style of null is represented by stroke-dasharray="0,0" but
I've been unable to create this in krita. It has been observed in a problem
file that was discussed in https://forum.kde.org/viewtopic.php?f=139&t=160634
where objects with a null linestyle were causing some vector lines to be
invisible by the process described in this report.

I've asked but have not been able to find out if the OP of that topic had
imported or pasted vector content from another application.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to