[Digikam-devel] [Bug 146032] panning doesn't work in LT

Gilles Caulier caulier.gilles at gmail.com
Mon May 28 09:52:33 BST 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=146032         
caulier.gilles gmail com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From caulier.gilles gmail com  2007-05-28 10:52 -------
SVN commit 668971 by cgilles:

digikam from trunk : do not resize Dimg before to pass it like QImage else original image size informations will be lost.
BUG: 146032


 M  +1 -4      paniconwidget.cpp  


--- trunk/extragear/graphics/digikam/libs/widgets/common/paniconwidget.cpp #668970:668971
 @ -109,11 +109,8  @
 
 void PanIconWidget::setImage(int previewWidth, int previewHeight, const DImg& image)
 {
-    QSize sz(image.width(), image.height());
-    sz.scale(previewWidth, previewHeight, QSize::ScaleMin);
     DImg img(image);
-    QImage qimage = img.smoothScale(sz.width(), sz.height()).copyQImage();
-    setImage(previewWidth, previewHeight, qimage);
+    setImage(previewWidth, previewHeight, img.copyQImage());
 }
 
 void PanIconWidget::slotZoomFactorChanged(double factor)



More information about the Digikam-devel mailing list