Commit 4634e58b authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Исправлен баг с TextBox.


git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56093 954022d7-b5bf-4e40-9824-e11837661b57
parent 98d921fe
......@@ -12667,8 +12667,19 @@ CDocument.prototype =
RunPr.RFonts = rFonts;
var Run = new CParaRun( Para );
var Run = new ParaRun( Para );
Run.Set_Pr( RunPr );
var Count = sText.length;
for ( var Index = 0; Index < Count; Index++ )
{
var _char = sText.charAt(Index);
if (" " == _char)
Run.Add_ToContent( Index, new ParaSpace(1), false );
else
Run.Add_ToContent( Index, new ParaText(_char), false );
}
Para.Add( Run );
this.Recalculate();
......
......@@ -834,7 +834,7 @@ ParaRun.prototype =
return this.Split2( CurPos );
},
Split2 : function(Pos)
Split2 : function(CurPos)
{
// Создаем новый ран
var NewRun = new ParaRun(this.Paragraph);
......
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