forked from KDE/okular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unnecessary copying from paintCroppedPageOnPainter
PagePainter::paintCroppedPageOnPainter had a few calls to QPixmap::setDevicePixelRatio on pixmaps it does not own, which detaches the pixmap, making a deep copy. It turns out these were all unnecessary. It also copied scaled before drawing them onto the painter. I've tested all the changes except for the annotation stamps, which I'm just assuming works like the others. Also ran clang-format.
- Loading branch information
1 parent
95846ea
commit 521ea66
Showing
1 changed file
with
6 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters