Commit 551145c5 authored by Pino Toscano's avatar Pino Toscano

When moving annotations, consider just the rotation of their pages, and not...

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
parent 6ad1b927
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment