297chrisc / playn

Automatically exported from code.google.com/p/playn
0 stars 0 forks source link

HTMLInternalTransform does not clone properly #160

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call clone on HTMLInternalTransform
2. Adjust the original transform
3. See changes affected by adjustments in cloned transform

What is the expected output? What do you see instead?
The transform should be the same as when it was cloned.

What version of the product are you using? On what operating system?

Please provide any additional information below.
clone method could be changed from:
  @Override
  public Transform clone() {
    return new HtmlInternalTransform(matrix);
  }

to:

  @Override
  public Transform clone() {
    return new HtmlInternalTransform(this);
  }

Original issue reported on code.google.com by colem...@gmail.com on 11 Apr 2012 at 3:32

GoogleCodeExporter commented 9 years ago
Fixed in 8b30f27684e06a3d77fe564b8d5c593b2f815f24.

Original comment by samskiv...@gmail.com on 11 Apr 2012 at 3:50