Commit 0b82f12d authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Добавил константу c_oAscMaxCellOrCommentLength. fix bug #29049

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61984 954022d7-b5bf-4e40-9824-e11837661b57
parent 59d0ee6a
...@@ -311,3 +311,5 @@ var c_oAscFormulaRangeBorderColor = [ ...@@ -311,3 +311,5 @@ var c_oAscFormulaRangeBorderColor = [
var c_oAscLockNameFrozenPane = "frozenPane"; var c_oAscLockNameFrozenPane = "frozenPane";
var c_oAscLockNameTabColor = "tabColor"; var c_oAscLockNameTabColor = "tabColor";
var c_oAscMaxCellOrCommentLength = 32767; // По идее должно быть 32768, но видимо сравнение идеть на меньше (а не меньше либо равно)
...@@ -156,7 +156,7 @@ var g_oCCommentDataProperties = { ...@@ -156,7 +156,7 @@ var g_oCCommentDataProperties = {
bSolved: 12, bSolved: 12,
aReplies: 13, aReplies: 13,
bHidden: 14 bHidden: 14
}; };
/** @constructor */ /** @constructor */
function asc_CCommentData(obj) { function asc_CCommentData(obj) {
this.Properties = g_oCCommentDataProperties; this.Properties = g_oCCommentDataProperties;
...@@ -238,7 +238,7 @@ asc_CCommentData.prototype = { ...@@ -238,7 +238,7 @@ asc_CCommentData.prototype = {
asc_putParent: function(obj) { this.oParent = obj; }, asc_putParent: function(obj) { this.oParent = obj; },
asc_getParent: function() { return this.oParent; }, asc_getParent: function() { return this.oParent; },
asc_putText: function(val) { this.sText = val; }, asc_putText: function(val) {this.sText = val ? val.slice(0, c_oAscMaxCellOrCommentLength) : val; },
asc_getText: function() { return this.sText; }, asc_getText: function() { return this.sText; },
asc_putTime: function(val) { this.sTime = val; }, asc_putTime: function(val) { this.sTime = val; },
......
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