Commit 91bbab0d authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix #32331

parent 6f5bc59c
...@@ -2508,4 +2508,5 @@ function GetRectContentWidth(oContent, dMaxWidth) ...@@ -2508,4 +2508,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);
...@@ -5640,7 +5640,7 @@ CShape.prototype = ...@@ -5640,7 +5640,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;
......
...@@ -2622,4 +2622,5 @@ function GetRectContentWidth(oContent, dMaxWidth) ...@@ -2622,4 +2622,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