Protect against negative bounds sizes.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@58 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Mark Johnson
2006-10-17 21:09:24 +00:00
parent 2c9eb850da
commit 7bf691a518
@@ -163,6 +163,12 @@ public class CompositedMultiFrameImage
source.getTrimmedBounds(index, tbounds);
_bounds = combineBounds(_bounds, tbounds);
}
if (_bounds.width <= 0) {
_bounds.width = 1;
}
if (_bounds.height <= 0) {
_bounds.height = 1;
}
// compute our new origin
_origin.x = (_sources[0].frames.getXOrigin(_orient, index) -