Commit 40aa8c5d 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@50136 954022d7-b5bf-4e40-9824-e11837661b57
parent f6715c79
......@@ -676,10 +676,13 @@ asc_CChart.prototype = {
}
},
Read_FromBinary2: function(Reader) {
Read_FromBinary2: function(Reader, noReadId) {
Reader.GetLong();
this.Id = Reader.GetString2();
var Id = Reader.GetString2();
if(!(noReadId === false))
this.Id = Id;
this.type = Reader.GetString2();
this.subType = Reader.GetString2();
......
......@@ -420,7 +420,9 @@ CChartAsGroup.prototype =
return;
History.Create_NewPoint();
History.Add(g_oUndoRedoGraphicObjects, historyitem_AutoShapes_RecalculateTransformUndo, null, null, new UndoRedoDataGraphicObjects(this.Get_Id(), new UndoRedoDataGOSingleProp(null, null)));
// type, subType, styleId
if ( this.chart.type != chart.type ) {
History.Add(g_oUndoRedoGraphicObjects, historyitem_Chart_Type, null, null, new UndoRedoDataGraphicObjects(this.chart.Get_Id(), new UndoRedoDataGOSingleProp(this.chart.type, chart.type)));
......@@ -536,7 +538,9 @@ CChartAsGroup.prototype =
this.chart.legend.bOverlay = chart.legend.bOverlay;
}
this.chart.rebuildSeries();
}
History.Add(g_oUndoRedoGraphicObjects, historyitem_AutoShapes_RecalculateTransformRedo, null, null, new UndoRedoDataGraphicObjects(this.Get_Id(), new UndoRedoDataGOSingleProp(null, null)));
}
else
this.chart = chart;
},
......@@ -1648,7 +1652,7 @@ CChartAsGroup.prototype =
this.hAxisTitle = new CChartTitle(this, CHART_TITLE_TYPE_H_AXIS);
this.hAxisTitle.readFromBinary(r);
}
this.chart.Read_FromBinary2(r);
this.chart.Read_FromBinary2(r, false);
this.spPr.Read_FromBinary2(r);
if(isRealNumber(x) && isRealNumber(y))
this.spPr.xfrm.setPosition(x, y);
......
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