All pastes #917294 Raw Edit

bibr

public cpp v1 · immutable
#917294 ·published 2008-02-25 07:32 UTC
rendered paste body
--- qgraphicsscene.cpp  2008/01/24 14:42:16.000000000+++ qgraphicsscene.cpp  2008/02/13 11:09:54.000000000@@ -3806,6 +3808,8 @@     if (cacheMode == QGraphicsItem::DeviceCoordinateCache) {         QTransform transform = painter->worldTransform();         QRect deviceRect = transform.mapRect(brect).toRect();+        if (deviceRect.isEmpty())+            return;         // Resort to direct rendering if the device rect exceeds the (optional) maximum bounds.         QSize maximumCacheSize =