Commit 61e2a5b8 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@51225 954022d7-b5bf-4e40-9824-e11837661b57
parent a70e2b07
...@@ -1065,7 +1065,7 @@ DrawingObjectsController.prototype = ...@@ -1065,7 +1065,7 @@ DrawingObjectsController.prototype =
state.id = STATES_ID_GROUP; state.id = STATES_ID_GROUP;
state.groupId = this.curState.group.Get_Id(); state.groupId = this.curState.group.Get_Id();
state.selectedObjects = []; state.selectedObjects = [];
for(var i = 0; i < this.curState.group.selectedObjects; ++i) for(var i = 0; i < this.curState.group.selectedObjects.length; ++i)
{ {
state.selectedObjects.push(this.curState.group.selectedObjects[i].Get_Id()); state.selectedObjects.push(this.curState.group.selectedObjects[i].Get_Id());
} }
......
...@@ -1669,7 +1669,10 @@ CChartAsGroup.prototype = ...@@ -1669,7 +1669,10 @@ CChartAsGroup.prototype =
if ( api.wb ) if ( api.wb )
{ {
var ws = api.wb.getWorksheetById(data.oldValue); var ws = api.wb.getWorksheetById(data.oldValue);
this.drawingObjects = ws.objectRender; if(isRealObject(ws))
this.drawingObjects = ws.objectRender;
else
this.drawingObjects = null;
} }
} }
break; break;
...@@ -1734,7 +1737,10 @@ CChartAsGroup.prototype = ...@@ -1734,7 +1737,10 @@ CChartAsGroup.prototype =
if ( api.wb ) if ( api.wb )
{ {
var ws = api.wb.getWorksheetById(data.newValue); var ws = api.wb.getWorksheetById(data.newValue);
this.drawingObjects = ws.objectRender; if(isRealObject(ws))
this.drawingObjects = ws.objectRender;
else
this.drawingObjects = null;
} }
} }
break; break;
......
...@@ -1586,7 +1586,10 @@ CGroupShape.prototype = ...@@ -1586,7 +1586,10 @@ CGroupShape.prototype =
if ( api.wb ) if ( api.wb )
{ {
var ws = api.wb.getWorksheetById(data.oldValue); var ws = api.wb.getWorksheetById(data.oldValue);
this.drawingObjects = ws.objectRender; if(isRealObject(ws))
this.drawingObjects = ws.objectRender;
else
this.drawingObjects = null;
} }
} }
break; break;
...@@ -1643,7 +1646,10 @@ CGroupShape.prototype = ...@@ -1643,7 +1646,10 @@ CGroupShape.prototype =
if ( api.wb ) if ( api.wb )
{ {
var ws = api.wb.getWorksheetById(data.newValue); var ws = api.wb.getWorksheetById(data.newValue);
this.drawingObjects = ws.objectRender; if(isRealObject(ws))
this.drawingObjects = ws.objectRender;
else
this.drawingObjects = null;
} }
} }
break; break;
......
...@@ -1146,7 +1146,10 @@ CImageShape.prototype = ...@@ -1146,7 +1146,10 @@ CImageShape.prototype =
if ( api.wb ) if ( api.wb )
{ {
var ws = api.wb.getWorksheetById(data.oldValue); var ws = api.wb.getWorksheetById(data.oldValue);
this.drawingObjects = ws.objectRender; if(isRealObject(ws))
this.drawingObjects = ws.objectRender;
else
this.drawingObjects = null;
} }
} }
break; break;
...@@ -1190,7 +1193,10 @@ CImageShape.prototype = ...@@ -1190,7 +1193,10 @@ CImageShape.prototype =
if ( api.wb ) if ( api.wb )
{ {
var ws = api.wb.getWorksheetById(data.newValue); var ws = api.wb.getWorksheetById(data.newValue);
this.drawingObjects = ws.objectRender; if(isRealObject(ws))
this.drawingObjects = ws.objectRender;
else
this.drawingObjects = null;
} }
} }
break; break;
......
...@@ -2961,7 +2961,10 @@ CShape.prototype = ...@@ -2961,7 +2961,10 @@ CShape.prototype =
if ( api.wb ) if ( api.wb )
{ {
var ws = api.wb.getWorksheetById(data.oldValue); var ws = api.wb.getWorksheetById(data.oldValue);
this.drawingObjects = ws.objectRender; if(isRealObject(ws))
this.drawingObjects = ws.objectRender;
else
this.drawingObjects = null;
} }
} }
break; break;
...@@ -3099,7 +3102,10 @@ CShape.prototype = ...@@ -3099,7 +3102,10 @@ CShape.prototype =
if ( api.wb ) if ( api.wb )
{ {
var ws = api.wb.getWorksheetById(data.newValue); var ws = api.wb.getWorksheetById(data.newValue);
this.drawingObjects = ws.objectRender; if(isRealObject(ws))
this.drawingObjects = ws.objectRender;
else
this.drawingObjects = null;
} }
} }
break; break;
......
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