Commit edecc16f authored by Sergey Luzyanin's avatar Sergey Luzyanin

fix crash

parent 9bd30ba6
...@@ -1459,8 +1459,21 @@ TextAddState.prototype = ...@@ -1459,8 +1459,21 @@ TextAddState.prototype =
this.onMouseUp(e, x, y, pageIndex); this.onMouseUp(e, x, y, pageIndex);
this.drawingObjects.OnMouseDown(e, x, y, pageIndex); this.drawingObjects.OnMouseDown(e, x, y, pageIndex);
} }
if(this.drawingObjects.handleEventMode === HANDLE_EVENT_MODE_CURSOR) if(this.drawingObjects.handleEventMode === HANDLE_EVENT_MODE_CURSOR){
return {cursorType: "default", objectId: this.majorObject.Get_Id()}; var oCheckObject = this.majorObject;
if(oCheckObject instanceof AscFormat.CTitle){
oCheckObject = oCheckObject.chart;
}
if(oCheckObject && oCheckObject.group){
while(!oCheckObject.group){
oCheckObject = oCheckObject.group;
}
}
if(oCheckObject && oCheckObject.parent){
return {cursorType: "default", objectId: oCheckObject.Get_Id()};
}
}
}, },
onMouseMove: function(e, x, y, pageIndex) onMouseMove: function(e, x, y, pageIndex)
{ {
......
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