Commit d71b82c7 authored by Anna.Pavlova's avatar Anna.Pavlova Committed by Alexander.Trofimov

git-svn-id:...

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49036 954022d7-b5bf-4e40-9824-e11837661b57
parent 97d5c7ab
This diff is collapsed.
This diff is collapsed.
...@@ -156,17 +156,21 @@ CMathContent.prototype = ...@@ -156,17 +156,21 @@ CMathContent.prototype =
getRunPrp: function(pos) getRunPrp: function(pos)
{ {
var runPrp = new CMathTextPrp(); var runPrp = new CMathTextPrp();
var rPrp = null;
if(this.content.length > 1) if(this.content.length > 1)
{ {
if(pos == 0) if(pos == 0)
{ {
var rPrp = this.content[pos+1].value.getTxtPrp(); rPrp = this.content[pos+1].value.getTxtPrp();
runPrp.Merge(rPrp); runPrp.Merge(rPrp);
} }
else else
{ {
var rPrp = this.content[pos].value.getTxtPrp(); if(this.content[pos].value.empty) // возможность, когда в контенте один CEmpty исключили в начале
rPrp = this.content[pos-1].value.getTxtPrp();
else
rPrp = this.content[pos].value.getTxtPrp();
runPrp.Merge(rPrp); runPrp.Merge(rPrp);
} }
} }
......
This diff is collapsed.
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