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:
@@ -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) -
|
||||
|
||||
Reference in New Issue
Block a user