Remove manually dealing with "auto" sizes in rasterization.

This commit is contained in:
Marshall T. Vandegrift 2009-01-16 19:13:51 -05:00
parent 7e100ac515
commit 0c3239c90d

View File

@ -117,11 +117,7 @@ class SVGRasterizer(object):
def rasterize_inline(self, elem, style, item):
width = style['width']
if width == 'auto':
width = self.profile.width
height = style['height']
if height == 'auto':
height = self.profile.height
width = (width / 72) * self.profile.dpi
height = (height / 72) * self.profile.dpi
elem = self.dataize_svg(item, elem)
@ -138,11 +134,7 @@ class SVGRasterizer(object):
def rasterize_external(self, elem, style, item, svgitem):
width = style['width']
if width == 'auto':
width = self.profile.width
height = style['height']
if height == 'auto':
height = self.profile.height
width = (width / 72) * self.profile.dpi
height = (height / 72) * self.profile.dpi
data = QByteArray(str(svgitem))