Merge pull request #11668 from tapioko/main

Don't try to get image data for zero sized images
This commit is contained in:
Andreas Hocevar
2020-10-19 16:05:22 +02:00
committed by GitHub

View File

@@ -832,6 +832,9 @@ function getImageData(layer, frameState) {
}
const width = frameState.size[0];
const height = frameState.size[1];
if (width === 0 || height === 0) {
return null;
}
const container = renderer.renderFrame(frameState, null);
let element;
if (container) {