Changeset 940

Show
Ignore:
Timestamp:
12/18/06 23:09:23 (2 years ago)
Author:
lknowland
Message:

Adjusted the horizontal scaling to double check and insure that the new width is less than 164. BugID: 45948

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/wheeljack/lib/MT/Asset/Image.pm

    r937 r940  
    8787    if ($scale eq 'h') { 
    8888        # scale by height 
     89        $n_h = $h; 
    8990        $n_w = int($i_w * $h / $i_h); 
    90         $n_h = $h; 
     91        if ($n_w > $w) { 
     92            $n_w = $w; 
     93            $n_h = int($i_h * $w / $i_w); 
     94        } 
    9195    } elsif ($scale eq 'w') { 
    9296        # scale by width