mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-02-10 18:15:19 +08:00
for bug 77078
This commit is contained in:
@ -662,16 +662,22 @@ CDrawingsController.prototype.CanAddComment = function()
|
||||
};
|
||||
CDrawingsController.prototype.GetSelectionAnchorPos = function()
|
||||
{
|
||||
var ParaDrawing = this.DrawingObjects.getMajorParaDrawing();
|
||||
if (!ParaDrawing)
|
||||
let paraDrawing = this.DrawingObjects.getMajorParaDrawing();
|
||||
if (!paraDrawing)
|
||||
{
|
||||
let curParagraph = this.LogicDocument.GetCurrentParagraph(false, null, null);
|
||||
return {
|
||||
X0 : 0,
|
||||
Y : 0,
|
||||
X1 : 0,
|
||||
Page : -1
|
||||
};
|
||||
}
|
||||
let drawing = paraDrawing.GraphicObj;
|
||||
return {
|
||||
X0 : ParaDrawing.GraphicObj.x,
|
||||
Y : ParaDrawing.GraphicObj.y,
|
||||
X1 : ParaDrawing.GraphicObj.x + ParaDrawing.GraphicObj.extX,
|
||||
Page : ParaDrawing.PageNum
|
||||
X0 : drawing.x,
|
||||
Y : drawing.y,
|
||||
X1 : drawing.x + drawing.extX,
|
||||
Page : paraDrawing.PageNum
|
||||
};
|
||||
};
|
||||
CDrawingsController.prototype.StartSelectionFromCurPos = function()
|
||||
|
||||
Reference in New Issue
Block a user