Commit 87911c6c97b11bd7d10a38698460174b6cadfbe8

  • avatar
  • Alexis Menard <alexis.menard @no…a.com>
  • Fri May 22 11:55:57 CEST 2009
Fix a leak because of an old legacy of QPixmapCache string API

We have to replace the pixmap in the cache if it was previously there,
we don't need to insert a new pixmap if a full update has been
triggered.

Reviewed-by:mbm
  
47594759 }
47604760
47614761 // Find pixmap in cache.
4762 if (!itemCache->allExposed)
4763 pixmapFound = QPixmapCache::find(pixmapKey, &pix);
4764 else
4765 pixmapFound = false;
4762 pixmapFound = QPixmapCache::find(pixmapKey, &pix);
47664763
47674764 // Render using item coordinate cache mode.
47684765 if (cacheMode == QGraphicsItem::ItemCoordinateCache) {