[squeak-dev] Bug in PolygonMorph>>#filledForm

Marcel Taeumel marcel.taeumel at hpi.de
Fri Feb 21 16:32:12 UTC 2020


Here is a picture of the bug:


Am 21.02.2020 17:31:01 schrieb Marcel Taeumel <marcel.taeumel at hpi.de>:
Hmmm... the form was still filled in Squeak 5.1 (Update 16549), VM 201701311639 (32-bit). Not so in Squeak 5.2.

Best,
Marcel
Am 21.02.2020 17:23:12 schrieb Stéphane Rollandin <lecteur at zogotounga.net>:
Hello,

Investigating why I had trouble raising the halo on a PolygonMorph, I
found that its #filledForm method is broken.

To see this, evaluate the following, which will display a triangle that
has plenty of holes:

(PolygonMorph new setVertices: {100 at 100. 300 at 100. 300 at 300}) filledForm
asMorph openInHand

So the filled form is not quite filled, and as a consequence
#containsPoint: is broken for PolygonMorph.

Note that the holes have a different pattern on 32bit and 64bits images.

This is on Windows, last tested with current trunk images.

Stef

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200221/0fbb7ee4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 24675 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200221/0fbb7ee4/attachment.png>


More information about the Squeak-dev mailing list