Commit b74af024 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

не было учтено что Range.intersection моет возвращать null

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@52266 954022d7-b5bf-4e40-9824-e11837661b57
parent cd8a3aa1
......@@ -347,8 +347,12 @@
return ActiveRange.superclass.containsRange.apply(this, arguments);
};
ActiveRange.prototype.intersection = function () {
var oRes = new ActiveRange(ActiveRange.superclass.intersection.apply(this, arguments));
oRes._updateAdditionalData();
var oRes = ActiveRange.superclass.intersection.apply(this, arguments);
if(null != oRes)
{
var oRes = new ActiveRange(oRes);
oRes._updateAdditionalData();
}
return oRes;
};
ActiveRange.prototype.intersectionSimple = function () {
......
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