The Inbox: Morphic-ct.1680.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: Morphic-ct.1680.mcz

commits-2
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.!