Bad path for PathToBrush()

Discuss any general programming issues here
Post Reply
Flinx
Posts: 188
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

Bad path for PathToBrush()

Post 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
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Bad path for PathToBrush()

Post by airsoftsoftwair »

Code: Select all

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