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:
Pino Toscano 2007-12-09 10:38:14 +00:00
parent 79b2b8355f
commit 8f55446c17

View file

@ -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 );
}