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

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50443 954022d7-b5bf-4e40-9824-e11837661b57
parent baf4f08a
...@@ -1435,7 +1435,7 @@ CGraphicObjects.prototype = { ...@@ -1435,7 +1435,7 @@ CGraphicObjects.prototype = {
case STATES_ID_TEXT_ADD: case STATES_ID_TEXT_ADD:
case STATES_ID_TEXT_ADD_IN_GROUP: case STATES_ID_TEXT_ADD_IN_GROUP:
{ {
if(this.State.textObject && this.State.textObject) if(this.State.textObject && this.State.textObject && this.State.textObject instanceof CShape)
{ {
if(this.State.textObject.txBody && this.State.textObject.txBody.compiledBodyPr && typeof (this.State.textObject.txBody.compiledBodyPr.anchor) == "number") if(this.State.textObject.txBody && this.State.textObject.txBody.compiledBodyPr && typeof (this.State.textObject.txBody.compiledBodyPr.anchor) == "number")
{ {
...@@ -1444,11 +1444,11 @@ CGraphicObjects.prototype = { ...@@ -1444,11 +1444,11 @@ CGraphicObjects.prototype = {
} }
return null; return null;
} }
case STATES_ID_NULL: default :
{ {
var _result_align = null; var _result_align = null;
var _cur_align; var _cur_align;
var _shapes = this.selectedObjects; var _shapes = this.State.group ? this.State.group.selectedObjects : this.selectedObjects;
var _shape_index; var _shape_index;
var _shape; var _shape;
for(_shape_index = 0; _shape_index < _shapes.length; ++_shape_index) for(_shape_index = 0; _shape_index < _shapes.length; ++_shape_index)
......
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