Bug 494170

Summary: Previewer renders invisible SVG layers as visible
Product: [Applications] dolphin Reporter: Roke Julian Lockhart Beedell <4wy78uwh>
Component: panels: informationAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: minor CC: kfm-devel
Priority: NOR    
Version: 24.08.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot of Dolphin.
Screenshot of Inkscape.
The original SVG.
Screenshot of the file picker.

Description Roke Julian Lockhart Beedell 2024-10-05 14:26:37 UTC
Created attachment 174459 [details]
Screenshot of Dolphin.

SUMMARY
-------
The file previewer in the information panel of Dolphin renders invisible SVG layers as visible.

STEPS TO REPRODUCE
------------------
1. Install https://download.fedoraproject.org/pub/fedora/linux/releases/40/Spins/x86_64/iso/Fedora-KDE-Live-x86_64-40-1.14.iso
2. Install https://fedora.pkgs.org/40/fedora-updates-x86_64/dolphin-24.08.0-1.fc40.x86_64.rpm.html
3. Enable the "Information" panel.
4. Use it to preview the to-be-attached SVG file.
5. Invoke the relevant SVG in Inkscape.

OBSERVED RESULT
---------------
The portions of the cogs which are visible in Inkscape are visible in the preview pane.

EXPECTED RESULT
---------------
They should render the same.

SOFTWARE/OS VERSIONS
--------------------
`kinfo` reports:

> ```YAML
>       Operating System: Fedora Linux 40
>     KDE Plasma Version: 6.1.5
> KDE Frameworks Version: 6.6.0
>             Qt Version: 6.7.2
>         Kernel Version: 6.10.12-200.fc40.x86_64 (64-bit)
>      Graphics Platform: Wayland
>             Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
>                 Memory: 30.5 GiB of RAM
>     Graphics Processor: AMD Radeon RX 5700
>           Manufacturer: ASRock
>           Product Name: X670E Taichi
> ```

ADDITIONAL INFORMATION
----------------------
I've attached (or shall attach):

- A screenshot of Dolphin;
- A screenshot of Inkscape; and
- The original file.
Comment 1 Roke Julian Lockhart Beedell 2024-10-05 14:27:07 UTC
Created attachment 174460 [details]
Screenshot of Inkscape.
Comment 2 Roke Julian Lockhart Beedell 2024-10-05 14:28:10 UTC
Created attachment 174461 [details]
The original SVG.
Comment 3 Roke Julian Lockhart Beedell 2024-10-05 14:28:32 UTC
Created attachment 174462 [details]
Screenshot of the file picker.