What steps will reproduce the problem?
1. Create an MTRoundRectangle
2. Set it's fill color and/or texture.
3. Call .setSizeLocal() to change it's size.
What is the expected output? What do you see instead?
The fill color and/or texture should stay the same, but the object reverts to
white.
What version of the product are you using? On what operating system?
Both v0.95 and svn trunk exhibit the problem. Ubuntu 10.4 x86_64,
JavaSE-1.6(java-6-openjdk).
Please provide any additional information below.
It looks like setSizeLocal() uses setVerticies() internally, and I find that
anything that uses setVerticies() (including calling it directly) resets an
objects fill color and texture. Tracing the code into GeometryInfo, it looks
like it tries to preserve the StyleInfo object, but I'm not sure where it
fails. I can produce a little example to demonstrate if needed.
Original issue reported on code.google.com by jpkiffme...@gmail.com on 16 Sep 2010 at 11:53
Original issue reported on code.google.com by
jpkiffme...@gmail.com
on 16 Sep 2010 at 11:53