From: Steinar H. Gunderson Date: Wed, 22 Aug 2007 06:06:49 +0000 (+0200) Subject: Fix a double-correction that would mess up images where width=NULL/height=NULL. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=e584d0f808e6c457850757a21ccc0b118b980ae7 Fix a double-correction that would mess up images where width=NULL/height=NULL. --- diff --git a/perl/Sesse/pr0n/Image.pm b/perl/Sesse/pr0n/Image.pm index 23b7d1b..e298dc3 100644 --- a/perl/Sesse/pr0n/Image.pm +++ b/perl/Sesse/pr0n/Image.pm @@ -47,11 +47,6 @@ sub handler { $dbwidth = $ref->{'width'}; $dbheight = $ref->{'height'}; - #} - - $dbwidth = -1 unless defined($dbwidth); - $dbheight = -1 unless defined($dbheight); - # Scale if we need to do so my ($fname,$thumbnail) = Sesse::pr0n::Common::ensure_cached($r, $filename, $id, $dbwidth, $dbheight, $infobox, $xres, $yres);