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

commits at source.squeak.org commits at source.squeak.org
Mon Mar 7 20:57:50 UTC 2011


Levente Uzonyi uploaded a new version of Balloon to project The Trunk:
http://source.squeak.org/trunk/Balloon-egp.19.mcz

==================== 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') -----
  pixelRamp
  
  "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