From: Steinar H. Gunderson Date: Wed, 4 Nov 2009 14:26:47 +0000 (+0100) Subject: Fix a typo in the do-not-need-to-scale code. X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=6fad6606098130a2a64197a933e98cc984175dfb Fix a typo in the do-not-need-to-scale code. --- diff --git a/perl/Sesse/pr0n/Common.pm b/perl/Sesse/pr0n/Common.pm index 2ab7b3a..d325907 100644 --- a/perl/Sesse/pr0n/Common.pm +++ b/perl/Sesse/pr0n/Common.pm @@ -706,7 +706,7 @@ sub ensure_cached { my $fname = get_disk_location($r, $id); if ($infobox ne 'box') { - unless (defined($xres) && (!defined($dbwidth) || !defined($dbheight) || $xres < $dbheight || $yres < $dbwidth || $xres == -1)) { + unless (defined($xres) && (!defined($dbwidth) || !defined($dbheight) || $xres < $dbwidth || $yres < $dbheight || $xres == -1)) { return ($fname, undef); } }