Commit f233476f authored by Sergey Luzyanin's avatar Sergey Luzyanin

fix Bug 34551

parent 3a79334b
......@@ -718,6 +718,9 @@ RotateState.prototype =
if(false === editor.isViewMode && false === this.drawingObjects.document.Document_Is_SelectionLocked(changestype_Drawing_Props, {Type : changestype_2_ElementsArray_and_Type , Elements : aCheckParagraphs, CheckType : AscCommon.changestype_Paragraph_Content}, bNoNeedCheck))
{
History.Create_NewPoint(AscDFH.historydescription_Document_RotateFlowDrawingNoCtrl);
if(bMoveState){
this.drawingObjects.resetSelection();
}
for(i = 0; i < aDrawings.length; ++i)
{
bounds = aBounds[i];
......@@ -747,10 +750,11 @@ RotateState.prototype =
var originalCopy = original.Copy();
originalCopy.Set_XYForAdd(bounds.posX, bounds.posY, aNearestPos[i], pageIndex);
originalCopy.Add_ToDocument(aNearestPos[i], false, null, oOriginalRun);
original.DocumentContent.Select_DrawingObject(originalCopy.Get_Id());
if (bTrackRevisions)
this.drawingObjects.document.Set_TrackRevisions(true);
this.drawingObjects.selectObject(originalCopy.GraphicObj, pageIndex);
}
else
{
......@@ -758,6 +762,9 @@ RotateState.prototype =
{
original.Set_XY(bounds.posX, bounds.posY, aParentParagraphs[i], original.GraphicObj.selectStartPage, bMoveState)
}
if(bMoveState){
this.drawingObjects.selectObject(original.GraphicObj, pageIndex);
}
}
this.drawingObjects.document.Recalculate();
}
......
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