Page 1 of 1

Bad path for PathToBrush()

Posted: Sun Jan 15, 2023 10:07 pm
by Flinx
Now I made a copy&paste mistake and the invalid path causes PathToBrush() to crash.

Code: Select all

StartPath(1)
LineTo(1, 100, 1) ; should be one line down
MoveTo(1, 1, 1)
LineTo(1, 1, 100)
ClosePath(1)
id=PathToBrush(Nil, {{ID=1, Color=#WHITE, X=100, Y=100}})
FreePath(1)
DisplayBrush(id, xpos, ypos)
FreeBrush(id)
WaitLeftMouse
Ralf

Re: Bad path for PathToBrush()

Posted: Sat Jan 28, 2023 10:14 pm
by airsoftsoftwair

Code: Select all

- Fix: Memory access fault with the inbuilt vectorgraphics engine when constructing paths that had empty subpaths in them