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

git-svn-id:...

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51059 954022d7-b5bf-4e40-9824-e11837661b57
parent 5001f73a
......@@ -2439,6 +2439,11 @@ CGraphicObjects.prototype = {
{
var chart = new CChartAsGroup(this.slide);
chart.initFromBinary(binary);
var p = editor.WordControl.m_oLogicDocument;
var pos_x = (p.Width - chart.spPr.xfrm.extX)/2;
var pos_y = (p.Height - chart.spPr.xfrm.extY)/2;
if(isRealNumber(pos_x) && isRealNumber(pos_y))
chart.setXfrm(pos_x, pos_y, null, null, null, null, null);
if(editor.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(changestype_AddShape, chart) === false)
{
this.slide.addToSpTreeToPos(this.slide.cSld.spTree, chart);
......@@ -3228,7 +3233,7 @@ CGraphicObjects.prototype = {
drawSelect: function(drawingDocument)
{
this.State.drawSelection(drawingDocument)
this.State.drawSelection(drawingDocument);
},
......
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