[FIX] [BUG] (sm) WireMorphAddHandleFix

Peace Jerome peace_the_dreamer at yahoo.com
Mon Mar 15 00:18:21 UTC 2004


Problem: If a WireMorph is a closed curve then the
last handle is a tween. Inorder not to show the pin
handles the next to last handle needs to be deleted
also. This fix checks and does that.
 
This is a resubmission of some small fixes that I
originally tried to get looked at in Oct 2003.
In resubmitting them I've made each a fix separate and
atomic to ease the decision making process for the
harvesters. And removed extraneous changes not
directly concerned with the fix.
I've also added preamble comments to indicate the
purpose of each fix.
 
Yours in service,  Jerome Peace
 


__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com
--0-205441879-1079309901=:62283
Content-Type: text/plain; name="WireMorphAddHandleFix.1.cs"
Content-Description: WireMorphAddHandleFix.1.cs
Content-Disposition: inline; filename="WireMorphAddHandleFix.1.cs"

'From Squeak3.7alpha of 11 September 2003 [latest update: #5816] on 13 March 2004 at 5:11:45 pm'!
"Change Set:		WireMorphAddHandleFix
Date:			13 March 2004
Author:			wiz (Jerome Peace)

When closed the last handle is a tween so delete the pin handle too -wiz"!


!WireMorph methodsFor: 'editing' stamp: 'wiz 3/13/2004 16:31'!
addHandles
	super addHandles.
	"Don't show endpoint handles"
	handles first delete.
	closed ifTrue: [handles allButLast last delete]
		"when closed the last handle is a tween so delete the pin handle too -wiz".
	handles last delete! !


More information about the Squeak-dev mailing list