Commit ad9a304e authored by SergeyLuzyanin's avatar SergeyLuzyanin

fix Bug 35163

parent 79aab551
......@@ -5292,6 +5292,22 @@ CPresentation.prototype =
{
if(this.Slides[this.CurPage])
{
var oDrawingObjects = this.Slides[this.CurPage].graphicObjects;
if(oDrawingObjects.curState instanceof AscFormat.StartAddNewShape
|| oDrawingObjects.curState instanceof AscFormat.SplineBezierState
|| oDrawingObjects.curState instanceof AscFormat.PolyLineAddState
|| oDrawingObjects.curState instanceof AscFormat.AddPolyLine2State
|| oDrawingObjects.arrTrackObjects.length > 0)
{
oDrawingObjects.changeCurrentState(new AscFormat.NullState(oDrawingObjects));
if( oDrawingObjects.arrTrackObjects.length > 0)
{
oDrawingObjects.clearTrackObjects();
oDrawingObjects.updateOverlay();
}
editor.sync_EndAddShape();
}
History.Create_NewPoint(AscDFH.historydescription_Document_AddTextArt);
var oTextArt = this.Slides[this.CurPage].graphicObjects.createTextArt(nStyle, false);
oTextArt.addToDrawingObjects();
......
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