Commit d0b559f6 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 25352 - Изменение позиции автофигур при группировке (edit)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57315 954022d7-b5bf-4e40-9824-e11837661b57
parent 19a9a04d
......@@ -1829,12 +1829,29 @@ CGraphicObjects.prototype =
var first_paragraph = objects_for_grouping[0].parent.Get_ParentParagraph();
var nearest_pos = this.document.Get_NearestPos(objects_for_grouping[0].parent.pageIndex, common_bounds.minX, common_bounds.minY, true, para_drawing);
for(i = 0; i < objects_for_grouping.length; ++i)
{
objects_for_grouping[i].parent.Remove_FromDocument(false);
}
para_drawing.Set_XYForAdd( common_bounds.minX, common_bounds.minY, nearest_pos, objects_for_grouping[0].parent.pageIndex);
para_drawing.Set_Props(new CImgProperty(
{
PositionH:
{
RelativeFrom: c_oAscRelativeFromH.Page,
UseAlign : false,
Align : undefined,
Value : common_bounds.minX
},
PositionV:
{
RelativeFrom: c_oAscRelativeFromV.Page,
UseAlign : false,
Align : undefined,
Value : common_bounds.minY
}
}));
para_drawing.Add_ToDocument2(first_paragraph);
this.addGraphicObject(para_drawing);
this.resetSelection();
......
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