Peter Mühlenpfordt <> changed:

           What    |Removed                     |Added
   Version Fixed In|                            |18.04.1
         Resolution|---                         |FIXED
             Status|CONFIRMED                   |RESOLVED
      Latest Commit|                            |
                   |                            |nview/f11f5a43b4a65a1a9f289
                   |                            |3dc577b94b7af94a37b

--- Comment #9 from Peter Mühlenpfordt <> ---
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

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:

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

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

Reply via email to