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

правка бага 21121 - [pptx] Ошибки в консоли при открытии презентации и...

правка бага 21121 - [pptx] Ошибки в консоли при открытии презентации и перемещения курсора на определенном слайде

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@50776 954022d7-b5bf-4e40-9824-e11837661b57
parent 0344a31d
...@@ -133,6 +133,11 @@ CGraphicFrame.prototype = ...@@ -133,6 +133,11 @@ CGraphicFrame.prototype =
} }
return []; return [];
}, },
hitInPath: function()
{
return false;
},
setGraphicObject: function(graphicObject) setGraphicObject: function(graphicObject)
{ {
History.Add(this, {Type: historyitem_SetGraphicObject, oldPr: this.graphicObject, newPr: graphicObject}); History.Add(this, {Type: historyitem_SetGraphicObject, oldPr: this.graphicObject, newPr: graphicObject});
...@@ -651,6 +656,11 @@ CGraphicFrame.prototype = ...@@ -651,6 +656,11 @@ CGraphicFrame.prototype =
return x_t > 0 && x_t < this.extX && y_t > 0 && y_t < this.extY; return x_t > 0 && x_t < this.extX && y_t > 0 && y_t < this.extY;
}, },
hitInTextRect: function(x, y)
{
return this.hitInInnerArea(x, y);
},
getInvertTransform: function() getInvertTransform: function()
{ {
if(this.recalcInfo.recalculateTransform) if(this.recalcInfo.recalculateTransform)
......
...@@ -443,11 +443,21 @@ CGroupShape.prototype = ...@@ -443,11 +443,21 @@ CGroupShape.prototype =
canRotate: function() canRotate: function()
{ {
for(var i = 0; i < this.arrGraphicObjects.length; ++i)
{
if(this.arrGraphicObjects[i] instanceof CGraphicFrame)
return false
}
return true; return true;
}, },
canResize: function() canResize: function()
{ {
for(var i = 0; i < this.arrGraphicObjects.length; ++i)
{
if(this.arrGraphicObjects[i] instanceof CGraphicFrame)
return false
}
return true;//TODO return true;//TODO
}, },
...@@ -458,6 +468,7 @@ CGroupShape.prototype = ...@@ -458,6 +468,7 @@ CGroupShape.prototype =
canGroup: function() canGroup: function()
{ {
return true;//TODO return true;//TODO
}, },
......
...@@ -309,7 +309,10 @@ CGraphicObjects.prototype = { ...@@ -309,7 +309,10 @@ CGraphicObjects.prototype = {
{ {
cur_drawing.sendMouseData(); cur_drawing.sendMouseData();
grouped_objects[j].txBody.updateCursorType(x, y, e); if(grouped_objects[j].txBody)
grouped_objects[j].txBody.updateCursorType(x, y, e);
else
grouped_objects[j].updateCursorType(x, y, e);
return; return;
} }
} }
......
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