mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-12 20:51:17 +00:00
don't expand the selection rect one pixel too much in both directions
svn path=/trunk/KDE/kdegraphics/okular/; revision=746501
This commit is contained in:
parent
79b2b8355f
commit
8f55446c17
|
@ -131,7 +131,7 @@ class PickPointEngine : public AnnotatorEngine
|
|||
pen.setStyle( Qt::DashLine );
|
||||
painter->setPen( pen );
|
||||
Okular::NormalizedRect tmprect( qMin( startpoint.x, point.x ), qMin( startpoint.y, point.y ), qMax( startpoint.x, point.x ), qMax( startpoint.y, point.y ) );
|
||||
QRect realrect = tmprect.geometry( (int)xScale, (int)yScale ).adjusted( 0, 0, 1, 1 );
|
||||
QRect realrect = tmprect.geometry( (int)xScale, (int)yScale );
|
||||
painter->drawRect( realrect );
|
||||
painter->setPen( origpen );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue