Re: Bad behaviour with really extreme images
Aurélien Gâteau <[email protected]> Thu, 24 Jul 2008 13:51:15 +0200
| Newsgroups | gmane.comp.kde.gwenview |
|---|---|
| Message-ID | <[email protected]> |
Ilya Konkov wrote:
> Hello,
>
> I undestand that this is really not very usable case, but anyway:
>
> QImage image(1, 10000, QImage::Format_Mono);
> image.fill(0);
> image.save("image.png", "PNG");
>
> Opening this image with gwenview gives:
> ASSERT: "!image.isNull()" in file
> /home/eruart/app/kdesvn/kdegraphics/gwenview/lib/imagescaler.cpp, line
> 145
Interesting, maybe we should check that we don't try to resize to
something less than 1 pixel width or height? I guess what's happening
here is that width() / mZoom returns something too close to 0. Can you
check this?
Aurélien
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/