src/hbcore/image/hbiconengine.cpp
changeset 21 4633027730f5
parent 7 923ff622b8b9
child 23 e6ad4ef83b23
--- a/src/hbcore/image/hbiconengine.cpp	Tue Jul 06 14:36:53 2010 +0300
+++ b/src/hbcore/image/hbiconengine.cpp	Wed Aug 18 10:05:37 2010 +0300
@@ -804,11 +804,7 @@
 {
     if (size != d->size) {
         d->size = size;
-        // Update default size if size is set before painting
-        // to obtain the actual default size of the image
-        if (!d->icon && !d->defaultSize.isValid()) {
-            defaultSize();
-        }
+        // Note: no defaultSize() calls here as it is potentially expensive.
         // Size changed, invalidate pixmap stored in this object.
         clearStoredIconContent(KeepDefaultSize);
     }