Status: New
Owner: ----
Labels: Milestone-1.4 Type-Bug
New issue 6039 by
[hidden email]: The PolygonMorph raise
SubscriptOutOfBounds due deletion of the last point
http://code.google.com/p/pharo/issues/detail?id=6039After current changes in the Morph class, handleMouseUp: method has this
call at the last line:
"self eventHandler ifNotNil: [:handler | handler mouseUp: anEvent
fromMorph: self ]"
So if a morph use "on: ..." mechanics like the PolygonMorph does, this line
always fire a class EventHandler.
For the bad luck, just before, it is the call: "self mouseUp: anEvent.".
And the default mouseUp: method of the Morph class, also contain the same
EventHandler call.
So the "on:.." method called twice, and the PolygonMorph is trying to
delete already deleted vertex.
I am not the big specialist in the morphic event system, so cant propose
the right changes. Nevertheless something should be done with this. :)
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker