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

            Bug ID: 406634
           Summary: Isolated 'use' elements in a Vector Library .svg file
                    should be ignored
           Product: krita
           Version: unspecified
          Platform: Debian stable
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: Dockers
          Assignee: krita-bugs-n...@kde.org
          Reporter: ahab.greybe...@hotmail.co.uk
  Target Milestone: ---

Created attachment 119465
  --> https://bugs.kde.org/attachment.cgi?id=119465&action=edit
None duplicated version of the default ballon symbols vector library

SUMMARY
The krita default installation has vector library files (.svg files) that
display duplicates in the Vector Library docker. This is common to all the
default vector library items.

This seems to be caused by the 'use' elements being interpreted as elements to
be displayed in the Vector Libray docker. Only the 'symbol' elements are
needed. The 'use' elements are a cosmetic/document leftover from the initial
production of the symbol set in Inkscape (or whatever was used to make the
library file) and correspond to the document contents before they were added to
the symbol library.

The 'use' elements have a minor benefit in that they are displayed in a desktop
or file manager file icon so keeping them may be a good idea but they are not
needed for use in a krita vector library file and should be ignored.

It may be possible that a 'symbol' element will contain a 'use' element in
order to incorporate one symbol as part of another symbol but that would not be
an isolated 'use' element.

The attached file "BalloonSymbols-A.svg" was made by text editing the krita
default "BalloonSymbols.svg" file to remove all isolated 'use' elements. (The
same results can be obtained by deleting a document vector object after it has
been added to the symbol list in Inkscape.) This file can be placed into the
user's --/krita/symbols folder to give a vector library with no duplicates.
It's provided as an illustrative example.

STEPS TO REPRODUCE
Open the Vector Library docker and select any of the default libray collections
to view them. 

SOFTWARE/OS VERSIONS
This is on all appimages

ADDITIONAL INFORMATION
A workaround is to only use vector library files without any 'use' elements in
them. (Example file attached.)

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

Reply via email to