diff --git a/apps/documenteditor/mobile/app/controller/edit/EditImage.js b/apps/documenteditor/mobile/app/controller/edit/EditImage.js index 956e45eb6..0c1f4c9be 100644 --- a/apps/documenteditor/mobile/app/controller/edit/EditImage.js +++ b/apps/documenteditor/mobile/app/controller/edit/EditImage.js @@ -196,11 +196,12 @@ define([ if (me.api) { var imgsize = me.api.get_OriginalSizeImage(), properties = new Asc.asc_CImgProperty(); - - properties.put_Width(imgsize.get_ImageWidth()); - properties.put_Height(imgsize.get_ImageHeight()); - properties.put_ResetCrop(true); - me.api.ImgApply(properties); + if (imgsize) { + properties.put_Width(imgsize.get_ImageWidth()); + properties.put_Height(imgsize.get_ImageHeight()); + properties.put_ResetCrop(true); + me.api.ImgApply(properties); + } } },