Commits

Takeshi Komiya committed e8b1f89

Fix SVGImageDraw#textlinesize() raises error; use Box class

  • Participants
  • Parent commits 15864fb

Comments (0)

Files changed (1)

File src/blockdiag/imagedraw/svg.py

         if maxwidth is None:
             maxwidth = 65535
 
-        box = (0, 0, maxwidth, 65535)
+        box = Box(0, 0, maxwidth, 65535)
         textbox = textfolder.get(self, box, string, font,
                                  adjustBaseline=True, **kwargs)
         return textbox.outlinebox.size