]> git.sesse.net Git - pr0n/commitdiff
Unbreak a weird special case.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 28 Nov 2015 13:46:58 +0000 (14:46 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 28 Nov 2015 13:46:58 +0000 (14:46 +0100)
perl/Sesse/pr0n/Common.pm

index 171f47d538ebead85ed6dc0e43f8b1e49f9a1fcc..6685008d9a98eba693b6eceb7718521c20628123 100644 (file)
@@ -603,7 +603,6 @@ sub ensure_cached {
                                $img = read_original_image($r, $filename, $id, $dbwidth, $dbheight, 0);
                                $new_dbwidth = $width = $img->Get('columns');
                                $new_dbheight = $height = $img->Get('rows');
                                $img = read_original_image($r, $filename, $id, $dbwidth, $dbheight, 0);
                                $new_dbwidth = $width = $img->Get('columns');
                                $new_dbheight = $height = $img->Get('rows');
-                               @$img = ();
                        } else {
                                $img = Image::Magick->new;
                                $width = $dbwidth;
                        } else {
                                $img = Image::Magick->new;
                                $width = $dbwidth;