Changeset 4587


Ignore:
Timestamp:
12/30/09 22:48:38 (10 years ago)
Author:
ronosman
Message:

Bug fixed : division by 0 when the image is not available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/pLoader/trunk/src/Uploader/GUI/wxImagePreview.pm

    r4408 r4587  
    6060              my $scale; 
    6161              my ($img_w, $img_h) = @{$this->image_size}; 
     62              return unless $img_w; 
     63              return unless $img_h; 
     64 
    6265              my $img_prop = $img_w / $img_h; 
    6366       
Note: See TracChangeset for help on using the changeset viewer.