Ticket #3206: not-all-images-are-scaled.patch

File not-all-images-are-scaled.patch, 532 bytes (added by godiard, 13 years ago)
  • server.py

    diff --git a/server.py b/server.py
    index f42fa28..5a35766 100755
    a b class WPHTMLWriter(mwlib.htmlwriter.HTMLWriter): 
    318318        is_svg = re.match(r'.*\.svg$', obj.target, re.IGNORECASE)
    319319        is_thumb = obj.thumb or obj.frame or (self.gallerylevel > 0)
    320320
    321         if not is_svg and ((width and height) or is_thumb):
     321        if not is_svg and ((width or height) or is_thumb):
    322322            max_length = max(width, height)
    323323            if obj.thumb:
    324324                max_length = 180