[Digikam-devel] extragear/graphics/digikam/libs/dimg

Francisco J. Cruz fj.cruz at supercable.es
Tue Apr 4 23:08:07 BST 2006


SVN commit 526558 by fjcruz:

Minor code clean-up.

CCMAIL:digikam-devel at kde.org

 M  +3 -3      dimg.cpp  


--- trunk/extragear/graphics/digikam/libs/dimg/dimg.cpp #526557:526558
@@ -1136,8 +1136,7 @@
     if (isNull())
         return QPixmap();
 
-    DImg img(*this);
-    img.detach();
+    DImg img = copy(0, 0, width(), height());
 
     IccTransform trans;
 
@@ -1148,6 +1147,7 @@
                            QFile::encodeName(monitorProfile) );
         trans.apply( img );
     }
+    // With embedd profile.
     else
     {
         trans.getEmbeddedProfile( img );
@@ -1155,7 +1155,7 @@
         trans.apply( img );
     }
 
-
+    img.convertToPixmap();
 }
 
 



More information about the Digikam-devel mailing list