Page 1 of 1

AddBoxToPath, RoundLevel, PathToBrush

Posted: Wed Mar 02, 2022 5:59 pm
by Flinx
Hi

When experimenting with vector objects that adapt to the window size, I found a crash in PathToBrush() when AddBoxToPath() is called with bad values.
Of course you can catch the problematic numbers before, but first you have to find the critical command, so it's worth a bugfix I think.
Tested only with Windows 10, 64 Bit.

Ralf

Code: Select all

StartPath(1)
MoveTo(1, 0, 0)
AddBoxToPath(1, 0, 0, 40, 0.9, {RoundLevel=1})
ClosePath(1)

id=PathToBrush(Nil, {{ID=1, Color=#WHITE}})
DisplayBrush(id, 50, 60)
Wait(250)

Re: AddBoxToPath, RoundLevel, PathToBrush

Posted: Fri Mar 04, 2022 11:08 pm
by airsoftsoftwair

Code: Select all

- Fix: AddBoxToPath() crashed when the rectangle width or height was less than 1 and round corners were active