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

Поправлено падение при разгруппирвке в редакторе документов. Убрано изменение...

Поправлено падение при разгруппирвке в редакторе документов. Убрано изменение позиции группы в документах при наборе текста в дочерней автофигуры с автоподбором размеров.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64230 954022d7-b5bf-4e40-9824-e11837661b57
parent 3184b2d7
......@@ -1280,8 +1280,11 @@ CGroupShape.prototype =
pos_y = new_yc - new_vc;
var xfrm = this.spPr.xfrm;
xfrm.setOffX(pos_x);
xfrm.setOffY(pos_y);
if(this.group || !(editor && editor.isDocumentEditor))
{
xfrm.setOffX(pos_x);
xfrm.setOffY(pos_y);
}
xfrm.setExtX(Math.abs(max_x - min_x));
xfrm.setExtY(Math.abs(max_y - min_y));
xfrm.setChExtX(Math.abs(max_x - min_x));
......
......@@ -2093,6 +2093,11 @@ CGraphicObjects.prototype =
{
sp = sp_tree[j];
var drawing = new ParaDrawing(0, 0, sp_tree[j], this.drawingDocument, null, null);
var xc, yc, hc = sp.extX/2, vc = sp.extY/2;
xc = sp.transform.TransformPointX(hc, vc);
yc = sp.transform.TransformPointY(hc, vc);
drawing.Set_GraphicObject(sp);
sp.setParent(drawing);
drawing.Set_DrawingType(drawing_Anchor);
......@@ -2107,9 +2112,6 @@ CGraphicObjects.prototype =
nearest_pos = this.document.Get_NearestPos(page_num, sp.bounds.x + sp.posX, sp.bounds.y + sp.posY, true, drawing);
nearest_pos.Paragraph.Check_NearestPos(nearest_pos);
var xc, yc, hc = sp.extX/2, vc = sp.extY/2;
xc = sp.transform.TransformPointX(hc, vc);
yc = sp.transform.TransformPointY(hc, vc);
drawing.Set_XYForAdd(xc - hc, yc - vc, nearest_pos, page_num);
a_objects.push({drawing: drawing, par: parent_paragraph, posX: xc - hc, posY: yc - vc});
this.selectObject(sp, page_num);
......@@ -2138,7 +2140,7 @@ CGraphicObjects.prototype =
}));
a_objects[i].drawing.Add_ToDocument2(a_objects[i].par);
}
this.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