Commit efb1fc47 authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

pixmapFromSvg(): argument pmapSize is now mandatory

there was no call without it anyway
parent fad593c0
......@@ -205,7 +205,7 @@ class UITile(AnimatedMixin, QGraphicsObject, StrMixin):
painter.drawLine(QPointF(0.0, 0.0), QPointF(width, height))
painter.drawLine(QPointF(width, 0.0), QPointF(0.0, height))
def pixmapFromSvg(self, pmapSize=None, withBorders=None):
def pixmapFromSvg(self, pmapSize, withBorders=None):
"""return a pixmap with default size as given in SVG
and optional borders/shadows"""
if withBorders is None:
......@@ -214,8 +214,6 @@ class UITile(AnimatedMixin, QGraphicsObject, StrMixin):
originalSize = self.tileset.tileSize.toSize()
originalSize = self.tileset.faceSize.toSize()
if not pmapSize:
pmapSize = originalSize
result = QPixmap(pmapSize)
painter = QPainter(result)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment