Commit 0e7aeb2b authored by Pino Toscano's avatar Pino Toscano

no need to set a new rotation if it's equal to the currently set

svn path=/trunk/KDE/kdegraphics/okular/; revision=689135
parent b41dcfed
......@@ -2500,9 +2500,10 @@ void Document::requestDone( PixmapRequest * req )
void Document::setRotation( int r )
{
if(!d->m_generator)
return;
Rotation rotation = (Rotation)r;
if ( !d->m_generator || ( d->m_rotation == rotation ) )
return;
// tell the pages to rotate
QVector< Okular::Page * >::const_iterator pIt = d->m_pagesVector.begin();
QVector< Okular::Page * >::const_iterator pEnd = d->m_pagesVector.end();
......
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