mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-12 20:51:17 +00:00
don't look twice, iterator is better
svn path=/trunk/playground/graphics/okular/; revision=627946
This commit is contained in:
parent
10a6e3943e
commit
e59275b54a
|
@ -89,8 +89,10 @@ void Page::Private::imageRotationDone()
|
|||
{
|
||||
RotationJob *job = static_cast<RotationJob*>( m_page->sender() );
|
||||
|
||||
if ( m_page->m_pixmaps.contains( job->id() ) ) {
|
||||
PixmapObject &object = m_page->m_pixmaps[ job->id() ];
|
||||
QMap< int, PixmapObject >::iterator it = m_page->m_pixmaps.find( job->id() );
|
||||
if ( it != m_page->m_pixmaps.end() )
|
||||
{
|
||||
PixmapObject &object = it.value();
|
||||
(*object.m_pixmap) = QPixmap::fromImage( job->image() );
|
||||
object.m_rotation = job->rotation();
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue