[squeak-dev] The Inbox: Morphic-ct.1680.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Sep 4 18:48:33 UTC 2020


Christoph Thiede uploaded a new version of Morphic to project The Inbox:
http://source.squeak.org/inbox/Morphic-ct.1680.mcz

==================== Summary ====================

Name: Morphic-ct.1680
Author: ct
Time: 4 September 2020, 8:48:24.528421 pm
UUID: 8fb88541-6e15-cb41-82d0-7de2f7c3e00e
Ancestors: Morphic-mt.1679

Fixes a bug in PluggableButtonMorph when passing nil as a label

Instead of an empty string, 'nil' asText was diplayed. See also PluggableButtonMorph >> #label.

=============== Diff against Morphic-mt.1679 ===============

Item was changed:
  ----- Method: PluggableButtonMorph>>label: (in category 'accessing') -----
  label: aStringOrTextOrMorph
  
  	label = aStringOrTextOrMorph ifTrue: [^ self].
+ 	label := aStringOrTextOrMorph ifNotNil: [
+ 		aStringOrTextOrMorph isString
+ 			ifFalse: [aStringOrTextOrMorph asMorph]
+ 			ifTrue: [aStringOrTextOrMorph]].
- 	label := aStringOrTextOrMorph isString
- 		ifFalse: [aStringOrTextOrMorph asMorph]
- 		ifTrue: [aStringOrTextOrMorph].
  	
  	self updateMinimumExtent.
  	self changed.!



More information about the Squeak-dev mailing list