#BUGFIX by Maren
authormatilk
Mon, 29 Jul 2019 11:52:44 +0200
changeset 6651 226b0380aadf
parent 6650 340342c01ce4
child 6652 2cb1a506f57d
#BUGFIX by Maren class: OptionBox class changed: #title: #title:numberOfOptions: do not initialize, #device: already did that or else every component will be doubled
OptionBox.st
--- a/OptionBox.st	Mon Jul 29 09:21:38 2019 +0200
+++ b/OptionBox.st	Mon Jul 29 11:52:44 2019 +0200
@@ -164,11 +164,13 @@
 
     box := self basicNew.
     box device:Screen current.
-    box initialize.
+    "/ do not initialize, #device: already did that
+"/    box initialize.
     box title:titleString.
     ^ box
 
     "Created: / 26-10-2018 / 10:56:42 / Claus Gittinger"
+    "Modified: / 29-07-2019 / 11:50:43 / Maren"
 !
 
 title:titleString numberOfOptions:nOptions
@@ -178,11 +180,13 @@
 
     box := self basicNew numberOfOptions:nOptions.
     box device:Screen current.
-    box initialize.
+    "/ do not initialize, #device: already did that
+"/    box initialize.
     box title:titleString.
     ^ box
 
     "Modified (comment): / 26-10-2018 / 10:56:48 / Claus Gittinger"
+    "Modified: / 29-07-2019 / 11:46:21 / Maren"
 ! !
 
 !OptionBox class methodsFor:'easy startup'!