From e584d0f808e6c457850757a21ccc0b118b980ae7 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 22 Aug 2007 08:06:49 +0200 Subject: [PATCH] Fix a double-correction that would mess up images where width=NULL/height=NULL. --- perl/Sesse/pr0n/Image.pm | 5 ----- 1 file changed, 5 deletions(-) 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); -- 2.39.2