mirror of
https://invent.kde.org/graphics/okular
synced 2024-11-05 18:34:53 +00:00
When moving annotations, consider just the rotation of their pages, and not also the page orientation.
BUG: 177598 svn path=/trunk/KDE/kdegraphics/okular/; revision=898291
This commit is contained in:
parent
6ad1b92793
commit
551145c54f
1 changed files with 2 additions and 2 deletions
|
@ -1518,8 +1518,8 @@ void PageView::contentsMouseMoveEvent( QMouseEvent * e )
|
|||
QPoint newpos = QPoint( e->x(), e->y() ) - itemRect.topLeft();
|
||||
Okular::NormalizedRect r = d->mouseAnn->boundingRectangle();
|
||||
QPoint p( newpos - d->mouseAnnPos );
|
||||
QPointF pf( rotateInRect( p, pageItem->page()->totalOrientation() ) );
|
||||
if ( pageItem->page()->totalOrientation() % 2 == 0 )
|
||||
QPointF pf( rotateInRect( p, pageItem->page()->rotation() ) );
|
||||
if ( pageItem->page()->rotation() % 2 == 0 )
|
||||
{
|
||||
pf.rx() /= pageItem->uncroppedWidth();
|
||||
pf.ry() /= pageItem->uncroppedHeight();
|
||||
|
|
Loading…
Reference in a new issue