Make Path.parse() return a Path object

This commit is contained in:
XANTRONIX Development 2024-01-02 01:17:13 -05:00
parent 6a7fb1f9c6
commit 7286839b77

View file

@ -127,7 +127,7 @@ class Path():
if command.command is not None: if command.command is not None:
commands.append(command.finish()) commands.append(command.finish())
return commands return Path(commands)
def horiz_to(self, cr: cairo.Context, x2: float): def horiz_to(self, cr: cairo.Context, x2: float):
_, y = cr.get_current_point() _, y = cr.get_current_point()