[Issue] 2533 GradientFillStyle cant change first and last color from halo menu

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue] 2533 GradientFillStyle cant change first and last color from halo menu

Denis Kudriashov
Open RectangleMorph. Set him gradient fill style. Try change first or second color. Nothing happen.

Reason is caching pixelRamp of Gradient.

Solution is deep copy of color ramp in target methods. See http://code.google.com/p/pharo/issues/detail?id=2533

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: [Issue] 2533 GradientFillStyle cant change first and last color from halo menu

Henrik Sperre Johansen

On Jun 11, 2010, at 11:59 38AM, Denis Kudriashov wrote:

Open RectangleMorph. Set him gradient fill style. Try change first or second color. Nothing happen.

Reason is caching pixelRamp of Gradient.

Solution is deep copy of color ramp in target methods. See http://code.google.com/p/pharo/issues/detail?id=2533

I suppose this report is for 1.0, it's already deep copying in 1.1.
I made an error when changing ColorPicker to open with the current color selected in 1.1 which causes #DNU when using the menu item though, so submitted a fix for that.

Cheers,
Henry


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project