[squeak-dev] The Inbox: Balloon-egp.19.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Mar 6 20:58:02 UTC 2011

A new version of Balloon was added to project The Inbox:

==================== Summary ====================

Name: Balloon-egp.19
Author: egp
Time: 6 March 2011, 3:57:55.989 pm
UUID: 2b333503-5ba7-4e5d-a5dc-9be357175975
Ancestors: Balloon-cmm.18

This fix restores the ability to modify gradients using the Morphic halo menus.  It modifies GradientFillStyle to use a deepCopy it's colorRamp as the LRUCache key. This prevents false hits from the cache that prevented modifications to the gradient.

=============== Diff against Balloon-cmm.18 ===============

Item was changed:
  ----- Method: GradientFillStyle>>pixelRamp (in category 'accessing') -----
  "Compute a pixel ramp, and cache it for future accesses"
  ^pixelRamp ifNil:[
  	"Insure the PixelRampCache is in place"
  	PixelRampCache ifNil:[ self class initPixelRampCache  ].
  	"Ask my cache for an existing instance if one is available"
+ 	pixelRamp := PixelRampCache at: colorRamp deepCopy	
- 	pixelRamp := PixelRampCache at: colorRamp	

More information about the Squeak-dev mailing list