https://bugs.kde.org/show_bug.cgi?id=423802
            Bug ID: 423802
           Summary: SVG file opens empty if defs structure element is not
                    before structure element that references it.
           Product: krita
           Version: 4.2.9
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: File formats
          Assignee: krita-bugs-n...@kde.org
          Reporter: steampoweredt...@gmail.com
  Target Milestone: ---

Created attachment 129847
  --> https://bugs.kde.org/attachment.cgi?id=129847&action=edit
Simple svg that reproduces the issue

SUMMARY
Loading an SVG file that has a <defs> structure statement after another same
level structure element, such as <g>, results in a broken import. Funny enough,
the preview of recently open files will show the image just fine.

These files work in Inkscape and the newest browsers just fine.

Via the SVG spec these structure elements may be defined in any order at the
same level which is typical of most xml schema and specs based off them.  The
Krita parser probably needs to do two separate passes of the DOM to work
correctly.

STEPS TO REPRODUCE
1. Open this fairly minimal reproduction 'repoBroken.svg' in Krita

OBSERVED RESULT
Notice no image is visible

EXPECTED RESULT
An image of two eye like shapes are visible.

SOFTWARE/OS VERSIONS
Windows: 10 64bit
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: Not sure

ADDITIONAL INFORMATION
If you edit the repoBroken.svg and move the <def> element above <g>, save, then
open in Krita the expected result of an image of two eye like objects show up.

Attached is repoBroken.svg.

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

Reply via email to