Commit bf4b8031 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

Правка бага 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 8d8452c1
...@@ -1153,7 +1153,7 @@ CGraphicObjects.prototype = ...@@ -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].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].calculateAfterResize(null, true);
sel_arr[0].chartModify(diagramm); 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.updateSizes();
this.curState.group.recalculate(); this.curState.group.recalculate();
......
...@@ -78,6 +78,7 @@ CChartAsGroup.prototype = ...@@ -78,6 +78,7 @@ CChartAsGroup.prototype =
calculateAfterOpen10: function() calculateAfterOpen10: function()
{ {
this.init(); this.init();
this.recalcAllTitles();
this.recalculate(); this.recalculate();
this.recalculateTransform(); this.recalculateTransform();
}, },
...@@ -227,6 +228,7 @@ CChartAsGroup.prototype = ...@@ -227,6 +228,7 @@ CChartAsGroup.prototype =
{ {
this.parent.bNeedUpdateWH = true; this.parent.bNeedUpdateWH = true;
} }
this.recalcAllTitles();
this.recalculate(); this.recalculate();
}, },
...@@ -1192,7 +1194,9 @@ CChartAsGroup.prototype = ...@@ -1192,7 +1194,9 @@ CChartAsGroup.prototype =
} }
catch(e) catch(e)
{} {
this.recalc
}
}, },
...@@ -1222,8 +1226,11 @@ CChartAsGroup.prototype = ...@@ -1222,8 +1226,11 @@ CChartAsGroup.prototype =
if(isRealObject(this.parent)) if(isRealObject(this.parent))
{ {
var xfrm = this.spPr.xfrm; var xfrm = this.spPr.xfrm;
if(!this.group)
{
xfrm.offX = 0; xfrm.offX = 0;
xfrm.offY = 0; xfrm.offY = 0;
}
xfrm.extX = this.parent.Extent.W; xfrm.extX = this.parent.Extent.W;
xfrm.extY = this.parent.Extent.H; xfrm.extY = this.parent.Extent.H;
} }
...@@ -1933,6 +1940,7 @@ CChartAsGroup.prototype = ...@@ -1933,6 +1940,7 @@ CChartAsGroup.prototype =
} }
else else
{ {
this.recalcAllTitles();
this.recalculate(true); this.recalculate(true);
} }
}, },
...@@ -2768,6 +2776,8 @@ CChartAsGroup.prototype = ...@@ -2768,6 +2776,8 @@ CChartAsGroup.prototype =
case historyitem_AutoShapes_RecalculateAfterResize: case historyitem_AutoShapes_RecalculateAfterResize:
{ {
this.recalculatePosExt(); this.recalculatePosExt();
this.recalcAllTitles();
this.init(); this.init();
this.recalculate(); this.recalculate();
if(this.parent) 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