Commit fcd63fe7 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov
parent aee7a14e
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -366966,8 +366966,17 @@ asc_docs_api.prototype.AddImageUrlNative = function(url, _w, _h, _pageNum) ...@@ -366966,8 +366966,17 @@ asc_docs_api.prototype.AddImageUrlNative = function(url, _w, _h, _pageNum)
var wI = (undefined !== _w) ? Math.max(_w * g_dKoef_pix_to_mm, 1) : 1; var wI = (undefined !== _w) ? Math.max(_w * g_dKoef_pix_to_mm, 1) : 1;
var hI = (undefined !== _h) ? Math.max(_h * g_dKoef_pix_to_mm, 1) : 1; var hI = (undefined !== _h) ? Math.max(_h * g_dKoef_pix_to_mm, 1) : 1;
wI = Math.max(5, Math.min(wI, __w)); if (wI < 5)
hI = Math.max(5, Math.min(hI, __h)); wI = 5;
if (hI < 5)
hI = 5;
if (wI > __w || hI > __h)
{
var _koef = Math.min(__w / wI, __h / hI);
wI *= _koef;
hI *= _koef;
}
this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(); this.WordControl.m_oLogicDocument.Create_NewHistoryPoint();
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