Merge pull request #11668 from tapioko/main
Don't try to get image data for zero sized images
This commit is contained in:
@@ -832,6 +832,9 @@ function getImageData(layer, frameState) {
|
|||||||
}
|
}
|
||||||
const width = frameState.size[0];
|
const width = frameState.size[0];
|
||||||
const height = frameState.size[1];
|
const height = frameState.size[1];
|
||||||
|
if (width === 0 || height === 0) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
const container = renderer.renderFrame(frameState, null);
|
const container = renderer.renderFrame(frameState, null);
|
||||||
let element;
|
let element;
|
||||||
if (container) {
|
if (container) {
|
||||||
|
|||||||
Reference in New Issue
Block a user