Commit 942c0f41 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Исправлены баги, связанные с расчетом текущего положения курсора (баг 24379).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58258 954022d7-b5bf-4e40-9824-e11837661b57
parent 17e242eb
......@@ -39,6 +39,36 @@ function ParaHyperlink()
ParaHyperlink.prototype =
{
protected_GetRangeStartPos : function(LineIndex, RangeIndex)
{
if (undefined !== this.Lines[LineIndex] && undefined !== this.Lines[LineIndex].Ranges[RangeIndex])
return this.Lines[LineIndex].Ranges[RangeIndex].StartPos;
return 0;
},
protected_GetRangeEndPos : function(LineIndex, RangeIndex)
{
if (undefined !== this.Lines[LineIndex] && undefined !== this.Lines[LineIndex].Ranges[RangeIndex])
return this.Lines[LineIndex].Ranges[RangeIndex].EndPos;
return 0;
},
protected_GetLinesCount : function()
{
return this.LinesLength;
},
protected_GetRangesCount : function(LineIndex)
{
if (undefined !== this.Lines[LineIndex])
return this.Lines[LineIndex].RangesLength;
return 0;
},
Get_Id : function()
{
return this.Id;
......
......@@ -2101,6 +2101,9 @@ Paragraph.prototype =
var LinePos = this.Get_CurrentParaPos();
if (-1 === LinePos.Line)
return { X : 0, Y : 0, Height : 0, Internal : { Line : 0, Page : 0, Range : 0 } };
var CurLine = LinePos.Line;
var CurRange = LinePos.Range;
var CurPage = LinePos.Page;
......
......@@ -589,6 +589,9 @@ ParaRun.prototype.Get_CurrentParaPos = function()
{
var Pos = this.State.ContentPos;
if (-1 === this.StartLine)
return new CParaPos(-1, -1, -1, -1);
var CurLine = 0;
var CurRange = 0;
......
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