racket / pict

Other
15 stars 20 forks source link

Use proper definition of `pict-path?` in `place-it` #67

Closed camoy closed 3 years ago

camoy commented 3 years ago

A similar issue as before, but this time affecting pin-over and pin-under. Providing a pict convertible as a pict path yields:

pin-over: expects two numbers or a sub-pict and a find procedure

This time, the cause is the place-it procedure which tests its argument to determine which form of pin-over was used. In doing so, it used the outdated definition of pict-path? (this time inlined in the conditional).

rfindler commented 3 years ago

Thanks!