# HG changeset patch # User Jan Vrany # Date 1461019040 -3600 # Node ID 8061a9b769530e4d8412f6e269541461e9613559 # Parent 3e1f431163d7c0484e1d91ead073a978b48e9d80 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. diff -r 3e1f431163d7 -r 8061a9b76953 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