[Pharo-project] Issue 3579 in pharo: "declare temp" adds the variable twice

pharo at googlecode.com pharo at googlecode.com
Thu Feb 3 04:43:14 CET 2011


Comment #7 on issue 3579 by guillerm... at gmail.com: "declare temp" adds the  
variable twice
http://code.google.com/p/pharo/issues/detail?id=3579

The problem seems to be in  
OBPluggableTextMorphWithShout>>correctFrom:to:with

It's doing:

correctFrom: start to: stop with: aString
	"see the comment in #acceptTextInModel "
	unstyledAcceptText isNil ifFalse:
		[ ^unstyledAcceptText
			replaceFrom: start
			to: stop
			with: aString ].
	^ super
		correctFrom: start
		to: stop
		with: aString



Commenting this fixes the problem:

	unstyledAcceptText isNil ifFalse:
		[ ^unstyledAcceptText
			replaceFrom: start
			to: stop
			with: aString ].


Does someone know if this change is ok?





More information about the Pharo-project mailing list