Re: thumbail creating
"Ilya Konkov" <[email protected]> Thu, 13 Mar 2008 15:04:44 +0500
| Newsgroups | gmane.comp.kde.gwenview |
|---|---|
| Message-ID | <[email protected]> |
Hello.
Because of this new check images are not always resized correctly in
"zoom to fit" mode:
void ImageView::setZoom(qreal zoom, const QPoint& center) {
qreal oldZoom = d->mZoom;
+ if (qAbs(zoom - oldZoom) < 0.001) {
+ return;
+ }
+
On image switching part calls setImage(0), setZoom fails on
d->mImage->isNull() check and sets d->mZoom to 1. Then actual
setImage() is called and zooming fails on oldZoom check if new zoom ==
1, as a result scaler still has zoom for previous image.
--
Ilya Konkov
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/