projects
/
pr0n
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ec8aac6
)
Fix a double-correction that would mess up images where width=NULL/height=NULL.
author
Steinar H. Gunderson
<sesse@debian.org>
Wed, 22 Aug 2007 06:06:49 +0000
(08:06 +0200)
committer
Steinar H. Gunderson
<sesse@debian.org>
Wed, 22 Aug 2007 06:06:49 +0000
(08:06 +0200)
perl/Sesse/pr0n/Image.pm
patch
|
blob
|
history
diff --git
a/perl/Sesse/pr0n/Image.pm
b/perl/Sesse/pr0n/Image.pm
index 23b7d1b60c93fc12d63afb6f120581f0f6f9c1bc..e298dc317277e1e2613345776ba9923e84374eec 100644
(file)
--- 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 = $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);
# Scale if we need to do so
my ($fname,$thumbnail) = Sesse::pr0n::Common::ensure_cached($r, $filename, $id, $dbwidth, $dbheight, $infobox, $xres, $yres);