Fix issues with multiple instances of symbols appearing in the wrong positions.

This was caused by cached bounds rectangles being modified elsewhere.
This commit is contained in:
Jürg Lehni 2011-12-27 19:53:28 +01:00
parent 2280c0cb94
commit b832787f7f

View file

@ -618,7 +618,9 @@ function(name) {
if (cache) {
if (!this._bounds)
this._bounds = {};
this._bounds[cache] = bounds;
// Put a separate instance into the cache, so modifications of the
// returned one won't affect it.
this._bounds[cache] = bounds.clone();
}
return bounds;
},