Commit 3177eab3 authored by alexey.musinov's avatar alexey.musinov

fix Bug 32816

parent 5dde163a
...@@ -1900,7 +1900,11 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params) ...@@ -1900,7 +1900,11 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params)
if (bIsNeed) if (bIsNeed)
{ {
var _originSize = this.WordControl.m_oDrawingDocument.Native["DD_GetOriginalImageSize"](_imagePr.ImageUrl); var currImage = this.WordControl.m_oLogicDocument.DrawingObjects.Get_Props();
if (currImage && currImage.length) {
var _originSize = this.WordControl.m_oDrawingDocument.Native["DD_GetOriginalImageSize"](currImage[0].ImageUrl);
var _w = _originSize[0]; var _w = _originSize[0];
var _h = _originSize[1]; var _h = _originSize[1];
...@@ -1936,6 +1940,7 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params) ...@@ -1936,6 +1940,7 @@ Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params)
_imagePr.Width = wI; _imagePr.Width = wI;
_imagePr.Height = hI; _imagePr.Height = hI;
} }
}
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment