Commit 8b6f9f65 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Исправлен баг с отрисовкой формул.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55050 954022d7-b5bf-4e40-9824-e11837661b57
parent 16abeb40
......@@ -612,6 +612,16 @@ ParaMath.prototype =
//-----------------------------------------------------------------------------------
Draw_HighLights : function(PDSH)
{
var CurLine = PDSH.Line - this.StartLine;
var CurRange = ( 0 === CurLine ? PDSH.Range - this.StartRange : PDSH.Range );
var StartPos = this.Lines[CurLine].Ranges[CurRange].StartPos;
var EndPos = this.Lines[CurLine].Ranges[CurRange].EndPos;
if ( EndPos >= 1 )
{
PDSH.X += this.Width;
}
},
Draw_Elements : function(PDSE)
......@@ -631,6 +641,16 @@ ParaMath.prototype =
Draw_Lines : function(PDSL)
{
var CurLine = PDSL.Line - this.StartLine;
var CurRange = ( 0 === CurLine ? PDSL.Range - this.StartRange : PDSL.Range );
var StartPos = this.Lines[CurLine].Ranges[CurRange].StartPos;
var EndPos = this.Lines[CurLine].Ranges[CurRange].EndPos;
if ( EndPos >= 1 )
{
PDSL.X += this.Width;
}
},
//-----------------------------------------------------------------------------------
// Функции для работы с курсором
......
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