Re: thumbail creating
Aurélien Gâteau <[email protected]> Thu, 13 Mar 2008 11:51:44 +0100
| Newsgroups | gmane.comp.kde.gwenview |
|---|---|
| Message-ID | <[email protected]> |
Ilya Konkov a écrit :
> 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.
Good catch! Should be fixed now. It was weird to define a zoom value if
image was null.
Aurélien
-------------------------------------------------------------------------
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/