kerou / mt4j

Automatically exported from code.google.com/p/mt4j
GNU General Public License v2.0
0 stars 0 forks source link

FillColor and Texture are cleared after a setSizeLocal(). #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Should be fixed now.

Original comment by sirhc.f...@gmail.com on 11 Oct 2010 at 6:54