SETACTIVEAREA throws stop error on bad input
A Logo programming environment for Microsoft Windows
Brought to you by:
david_costanzo
When SETACTIVEAREA is given an input lists that doesn't
describe a rectangle, it displays a dialog box and
throws a "Stop" error. This is inconsistent with how
the rest of the functions work and violates user
expectations.
Note that this fix must be made carefully, because a
message box should still be seen when setting the
active area through the dialog box.
How Reproducible:
Every Time
Steps to Reproduce:
SETACTIVEAREA [0 0 0 0]
What Happens:
FMSLogo displays a message box that says "Bad
Parameter". Then it says "Stopping".
Expected Result:
SETACTIVEAREA doesn't like [0 0 0 0] as input
I have checked in a fix for this. It will be available in FMSLogo 6.23.0. Setting an incorrect range through the GUI still displays a dialog box (this was easier than I thought to accomplish, as there were already two separate code paths).