[Digikam-devel] [Bug 148072] zoom tool for sharpen tool is ankward

Arnd Baecker arnd.baecker at web.de
Thu Dec 20 10:02:35 GMT 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=148072         




------- Additional Comments From arnd.baecker web de  2007-12-20 11:02 -------
The slider range issue could be overcome by this:
--- libs/widgets/imageplugins/imageregionwidget.cpp     (revision 750612)
+++ libs/widgets/imageplugins/imageregionwidget.cpp     (working copy)
 @ -118,6 +118,10  @
     double dstWidth  = contentsRect().width();
     double dstHeight = contentsRect().height();
     double zoom      = QMAX(dstWidth/srcWidth, dstHeight/srcHeight);
+
+    // For small images we start with 100% zoom, i.e. smaller than contentsRect.
+    if (zoom>1.0)
+        zoom = 1.0;

     setZoomMin(zoom);
     setZoomMax(zoom*12.0);

------------

But this (of course) addresses non of the problems one gets.

Gilles, I think Markus suggestion #c13 to apply your patch 
is a good one: for normal images everything is ok (and that is really the majority I would guess), while for small images we have
to find the origin of the problem (seems not an easy one at first glance).



More information about the Digikam-devel mailing list