Commit 296dcd65 authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix #32331

parent b0843804
...@@ -2484,4 +2484,5 @@ function GetRectContentWidth(oContent, dMaxWidth) ...@@ -2484,4 +2484,5 @@ function GetRectContentWidth(oContent, dMaxWidth)
//--------------------------------------------------------export---------------------------------------------------- //--------------------------------------------------------export----------------------------------------------------
window['AscFormat'] = window['AscFormat'] || {}; window['AscFormat'] = window['AscFormat'] || {};
window['AscFormat'].CTextDrawer = CTextDrawer; window['AscFormat'].CTextDrawer = CTextDrawer;
window['AscFormat'].GetRectContentWidth = GetRectContentWidth;
})(window); })(window);
...@@ -5616,7 +5616,7 @@ CShape.prototype = ...@@ -5616,7 +5616,7 @@ CShape.prototype =
editor.WordControl.m_oLogicDocument.TurnOn_Recalculate(false); editor.WordControl.m_oLogicDocument.TurnOn_Recalculate(false);
} }
dMinPolygonLength = warpGeometry.getMinPathPolygonLength(); dMinPolygonLength = warpGeometry.getMinPathPolygonLength();
dOneLineWidth = GetRectContentWidth(oContentToDraw); dOneLineWidth = AscFormat.GetRectContentWidth(oContentToDraw);
if(dOneLineWidth > dMinPolygonLength) if(dOneLineWidth > dMinPolygonLength)
{ {
dKoeff = dMinPolygonLength/dOneLineWidth; dKoeff = dMinPolygonLength/dOneLineWidth;
......
...@@ -2598,4 +2598,5 @@ function GetRectContentWidth(oContent, dMaxWidth) ...@@ -2598,4 +2598,5 @@ function GetRectContentWidth(oContent, dMaxWidth)
window['AscFormat'].CreatePenFromParams = CreatePenFromParams; window['AscFormat'].CreatePenFromParams = CreatePenFromParams;
window['AscFormat'].CTextDrawer = CTextDrawer; window['AscFormat'].CTextDrawer = CTextDrawer;
window['AscFormat'].PolygonWrapper = PolygonWrapper; window['AscFormat'].PolygonWrapper = PolygonWrapper;
window['AscFormat'].GetRectContentWidth = GetRectContentWidth;
})(window); })(window);
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