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 = [
var c_oAscLockNameFrozenPane = "frozenPane";
var c_oAscLockNameTabColor = "tabColor";
var c_oAscMaxCellOrCommentLength = 32767; // По идее должно быть 32768, но видимо сравнение идеть на меньше (а не меньше либо равно)
......@@ -142,21 +142,21 @@ window["Asc"]["asc_CCommentCoords"] = window["Asc"].asc_CCommentCoords = asc_CCo
// CommentData
//-----------------------------------------------------------------------------------
var g_oCCommentDataProperties = {
wsId: 0,
nCol: 1,
nRow: 2,
nId: 3,
nLevel: 5,
sText: 6,
sQuoteText: 7,
sTime: 8,
sUserId: 9,
sUserName: 10,
bDocument: 11,
bSolved: 12,
aReplies: 13,
bHidden: 14
};
wsId: 0,
nCol: 1,
nRow: 2,
nId: 3,
nLevel: 5,
sText: 6,
sQuoteText: 7,
sTime: 8,
sUserId: 9,
sUserName: 10,
bDocument: 11,
bSolved: 12,
aReplies: 13,
bHidden: 14
};
/** @constructor */
function asc_CCommentData(obj) {
this.Properties = g_oCCommentDataProperties;
......@@ -238,7 +238,7 @@ asc_CCommentData.prototype = {
asc_putParent: function(obj) { this.oParent = obj; },
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_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