Issue #76: Correctly reset device in GraphicsMedium>>setDevice:... jv
authorJan Vrany <jan.vrany@fit.cvut.cz>
Mon, 18 Apr 2016 23:37:20 +0100
branchjv
changeset 7297 8061a9b76953
parent 7296 3e1f431163d7
child 7298 6cc9d56cb05d
Issue #76: Correctly reset device in GraphicsMedium>>setDevice:... As the grahics device is cached in GraphicsMedium, when setDevice: is called the cached value in GraphicsMedium `device slot must be set too. This fixes cursor recreation after snapshot restart.
GraphicsMedium.st
--- a/GraphicsMedium.st	Sat Apr 16 06:47:45 2016 +0200
+++ b/GraphicsMedium.st	Mon Apr 18 23:37:20 2016 +0100
@@ -3053,6 +3053,8 @@
     gc notNil ifTrue:[
         gc setDevice:aDevice id:aDrawbleId gcId:aGCId
     ].
+    device := aDevice
+    
 !
 
 setId:aDrawableId