AddBoxToPath, RoundLevel, PathToBrush

Report any Hollywood bugs here
Post Reply
Flinx
Posts: 188
Joined: Sun Feb 14, 2021 9:54 am
Location: Germany

AddBoxToPath, RoundLevel, PathToBrush

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

Re: AddBoxToPath, RoundLevel, PathToBrush

Post by airsoftsoftwair »

Code: Select all

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