CheckBox.st
changeset 4996 86f2a261a11a
parent 4913 68829b96da60
child 5455 d48ce74ca92a
--- a/CheckBox.st	Sat Apr 02 17:09:33 2016 +0200
+++ b/CheckBox.st	Sat Apr 02 17:09:54 2016 +0200
@@ -562,7 +562,7 @@
     xlatedLabel := self defineShortcutAndTranslateLabelStringFrom:aStringOrImageOrForm.
     self isNativeWidget ifTrue:[
         gc drawableId notNil ifTrue:[
-            self graphicsDevice changeLabel:xlatedLabel in:gc drawableId
+            device changeLabel:xlatedLabel in:gc drawableId
         ]
     ].
     labelView label:xlatedLabel.
@@ -767,7 +767,7 @@
     |graphicsDevice|
 
     super initStyle.
-    graphicsDevice := self graphicsDevice.
+    graphicsDevice := device.
 
     DefaultLabelForegroundColor notNil ifTrue:[
         labelForegroundColor := DefaultLabelForegroundColor onDevice:graphicsDevice.