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

Peter Mühlenpfordt <de...@ukn8.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |18.04.1
         Resolution|---                         |FIXED
             Status|CONFIRMED                   |RESOLVED
      Latest Commit|                            |https://commits.kde.org/gwe
                   |                            |nview/f11f5a43b4a65a1a9f289
                   |                            |3dc577b94b7af94a37b

--- Comment #9 from Peter Mühlenpfordt <de...@ukn8.de> ---
Git commit f11f5a43b4a65a1a9f2893dc577b94b7af94a37b by Peter Mühlenpfordt.
Committed on 15/04/2018 at 07:50.
Pushed by muhlenpfordt into branch 'Applications/18.04'.

Fix reloading of SVG images

Summary:
If an SVG image is reloaded ({key F5} or {nav File > Reload}) the
`QSvgRenderer` is not updated after loading and Gwenview crashes
when trying to zoom. If the SVG file is changed outside Gwenview
while it is viewed and then reloaded it's not updated.
This is caused by a missing connection to the `loaded()` signal
and calling `SvgImageView::finishLoadFromDocument()` to setup the
new renderer.
FIXED-IN: 18.04.1

Test Plan:
1. Open SVG image in View Mode
2. Press {key F5} to reload
3. Zoom by mouse scroll or moving the slider
4. Gwenview should not crash

1. Open SVG image in View Mode
2. Overwrite viewed file with another SVG outside Gwenview
3. Press {key F5} to reload
4. New image should display

Reviewers: #gwenview, rkflx

Reviewed By: #gwenview, rkflx

Subscribers: rkflx, huoni

Differential Revision: https://phabricator.kde.org/D12187

M  +6    -4    lib/documentview/svgviewadapter.cpp

https://commits.kde.org/gwenview/f11f5a43b4a65a1a9f2893dc577b94b7af94a37b

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

Reply via email to