Remove unused property from PixmapObject

This property was added before the tiles manager was created.
This commit is contained in:
Mailson Menezes 2012-08-24 13:31:01 -03:00
parent 2d5b51ff88
commit 0053b9c015
2 changed files with 1 additions and 9 deletions

View file

@ -236,13 +236,7 @@ bool Page::hasPixmap( int id, int width, int height, const NormalizedRect &rect
const QPixmap *pixmap = it.value().m_pixmap;
if ( pixmap->width() != width || pixmap->height() != height )
return false;
if ( rect.isNull() )
return true;
return (rect == it.value().m_rect);
return (pixmap->width() == width && pixmap->height() == height);
}
bool Page::hasTextPage() const
@ -522,7 +516,6 @@ void Page::setPixmap( int id, QPixmap *pixmap, const NormalizedRect &rect )
it = d->m_pixmaps.insert( id, PagePrivate::PixmapObject() );
}
it.value().m_pixmap = pixmap;
it.value().m_rect = rect;
it.value().m_rotation = d->m_rotation;
} else {
RotationJob *job = new RotationJob( pixmap->toImage(), Rotation0, d->m_rotation, id );

View file

@ -107,7 +107,6 @@ class PagePrivate
{
public:
QPixmap *m_pixmap;
NormalizedRect m_rect;
Rotation m_rotation;
};
QMap< int, PixmapObject > m_pixmaps;