This commit is contained in:
Kovid Goyal 2019-04-02 10:09:00 +05:30
parent 3bece11b09
commit 690ba43dcc
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -70,12 +70,11 @@ def svg_path_to_painter_path(d):
# x1/y1 and x2/y2 = bezier control points # x1/y1 and x2/y2 = bezier control points
x = y = x1 = y1 = x2 = y2 = 0 x = y = x1 = y1 = x2 = y2 = 0
data = d if isinstance(d, unicode_type):
if isinstance(data, unicode_type): d = d.encode('ascii')
data = data.encode('ascii') d = d.replace(b',', b' ').replace(b'\n', b' ')
data = d.replace(b',', b' ').replace(b'\n', b' ') end = len(d)
end = len(data) data = ReadOnlyFileBuffer(d)
data = ReadOnlyFileBuffer(data)
def parse_float(): def parse_float():
chars = [] chars = []