Fix selection rectangle for SVG images in View comparison mode

Authored by huoni on Mar 30 2018, 3:07 AM.

Description

Fix selection rectangle for SVG images in View comparison mode

Summary:
For SVG images, the selection rect encompassed the entire bounding
rect. This patch implements SvgViewAdapter::visibleDocumentRect
so it returns the correct rect instead of falling back to the generic
implementation in AbstractDocumentViewAdapter.

Before

After

Test Plan: Open at least one SVG in View comparison mode, and select the SVG.

Reviewers: Gwenview, ngraham, rkflx

Reviewed By: Gwenview, ngraham, rkflx

Subscribers: rkflx, ngraham

Tags: Gwenview

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

Details

Committed
huoniApr 3 2018, 6:10 AM
Reviewer
Gwenview
Differential Revision
D11796: Fix selection rectangle for SVG images in View comparison mode
Parents
R260:077204d73976: GIT_SILENT made messages (after extraction)
Branches
Unknown
Tags
Unknown