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

Правка бага 22217 - [CoEdit] Ошибка в консоли после принятия диаграммы в...

Правка бага 22217 - [CoEdit] Ошибка в консоли после принятия диаграммы в группе и закрытия окна фрейма

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@52083 954022d7-b5bf-4e40-9824-e11837661b57
parent 3ebc7895
......@@ -1153,7 +1153,7 @@ CGraphicObjects.prototype =
sel_arr[0].setXfrm(null, null, sel_arr[0].drawingDocument.GetMMPerDot(diagramm.width), sel_arr[0].drawingDocument.GetMMPerDot(diagramm.height), null, false, false);
sel_arr[0].calculateAfterResize(null, true);
sel_arr[0].chartModify(diagramm);
editor.WordControl.m_oLogicDocument.DrawingObjects.urlMap.push(diagramm.img);
// editor.WordControl.m_oLogicDocument.DrawingObjects.urlMap.push(diagramm.img);
this.curState.group.updateSizes();
this.curState.group.recalculate();
......
......@@ -78,6 +78,7 @@ CChartAsGroup.prototype =
calculateAfterOpen10: function()
{
this.init();
this.recalcAllTitles();
this.recalculate();
this.recalculateTransform();
},
......@@ -227,6 +228,7 @@ CChartAsGroup.prototype =
{
this.parent.bNeedUpdateWH = true;
}
this.recalcAllTitles();
this.recalculate();
},
......@@ -1192,7 +1194,9 @@ CChartAsGroup.prototype =
}
catch(e)
{}
{
this.recalc
}
},
......@@ -1222,8 +1226,11 @@ CChartAsGroup.prototype =
if(isRealObject(this.parent))
{
var xfrm = this.spPr.xfrm;
xfrm.offX = 0;
xfrm.offY = 0;
if(!this.group)
{
xfrm.offX = 0;
xfrm.offY = 0;
}
xfrm.extX = this.parent.Extent.W;
xfrm.extY = this.parent.Extent.H;
}
......@@ -1933,6 +1940,7 @@ CChartAsGroup.prototype =
}
else
{
this.recalcAllTitles();
this.recalculate(true);
}
},
......@@ -2768,6 +2776,8 @@ CChartAsGroup.prototype =
case historyitem_AutoShapes_RecalculateAfterResize:
{
this.recalculatePosExt();
this.recalcAllTitles();
this.init();
this.recalculate();
if(this.parent)
......
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