Commit a3393f0f authored by Sergey Luzyanin's avatar Sergey Luzyanin

Merge branch 'release/4.0.1' into develop

parents c5f45b26 3e92c09c
...@@ -1608,6 +1608,8 @@ function DrawingObjects() { ...@@ -1608,6 +1608,8 @@ function DrawingObjects() {
printPagesData printPagesData
} }
*****************************************/ *****************************************/
if (!worksheet || !worksheet.model)
return;
// Undo/Redo // Undo/Redo
if ( (worksheet.model.index != api.wb.model.getActive()) && !printOptions ) if ( (worksheet.model.index != api.wb.model.getActive()) && !printOptions )
......
...@@ -181,6 +181,7 @@ CGraphicFrame.prototype.setGraphicObject= function(graphicObject) ...@@ -181,6 +181,7 @@ CGraphicFrame.prototype.setGraphicObject= function(graphicObject)
if(this.graphicObject) if(this.graphicObject)
{ {
this.graphicObject.Index = 0; this.graphicObject.Index = 0;
this.graphicObject.Parent = this;
} }
}; };
...@@ -1093,6 +1094,7 @@ CGraphicFrame.prototype.Undo = function(data) ...@@ -1093,6 +1094,7 @@ CGraphicFrame.prototype.Undo = function(data)
if(this.graphicObject) if(this.graphicObject)
{ {
this.graphicObject.Index = 0; this.graphicObject.Index = 0;
this.graphicObject.Parent = this;
} }
break; break;
} }
...@@ -1139,6 +1141,7 @@ CGraphicFrame.prototype.Redo = function(data) ...@@ -1139,6 +1141,7 @@ CGraphicFrame.prototype.Redo = function(data)
if(this.graphicObject) if(this.graphicObject)
{ {
this.graphicObject.Index = 0; this.graphicObject.Index = 0;
this.graphicObject.Parent = this;
} }
break; break;
} }
...@@ -1213,6 +1216,7 @@ CGraphicFrame.prototype.Load_Changes = function(r) ...@@ -1213,6 +1216,7 @@ CGraphicFrame.prototype.Load_Changes = function(r)
if(this.graphicObject) if(this.graphicObject)
{ {
this.graphicObject.Index = 0; this.graphicObject.Index = 0;
this.graphicObject.Parent = this;
} }
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