Commit d796014f authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Ограничил размер комментария в Excel, PP, Word

bugs #29049, #29050, #29059

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61985 954022d7-b5bf-4e40-9824-e11837661b57
parent 0b82f12d
......@@ -591,3 +591,4 @@ var c_oAscLineBeginSize = {
};
var c_oAscMaxTooltipLength = 256;
var c_oAscMaxCellOrCommentLength = 32767; // По идее должно быть 32768, но видимо сравнение идеть на меньше (а не меньше либо равно)
\ No newline at end of file
......@@ -311,5 +311,3 @@ var c_oAscFormulaRangeBorderColor = [
var c_oAscLockNameFrozenPane = "frozenPane";
var c_oAscLockNameTabColor = "tabColor";
var c_oAscMaxCellOrCommentLength = 32767; // По идее должно быть 32768, но видимо сравнение идеть на меньше (а не меньше либо равно)
......@@ -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 ? val.slice(0, c_oAscMaxCellOrCommentLength) : 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; },
......
......@@ -3396,7 +3396,7 @@ function asc_CCommentData( obj )
}
asc_CCommentData.prototype.asc_getText = function() { return this.m_sText; };
asc_CCommentData.prototype.asc_putText = function(v) { this.m_sText = v; };
asc_CCommentData.prototype.asc_putText = function(v) { this.m_sText = v ? v.slice(0, c_oAscMaxCellOrCommentLength) : v; };
asc_CCommentData.prototype.asc_getTime = function() { return this.m_sTime; };
asc_CCommentData.prototype.asc_putTime = function(v) { this.m_sTime = v; };
asc_CCommentData.prototype.asc_getUserId = function() { return this.m_sUserId; };
......
......@@ -5368,7 +5368,7 @@ function asc_CCommentDataWord( obj )
}
asc_CCommentDataWord.prototype.asc_getText = function() { return this.m_sText; };
asc_CCommentDataWord.prototype.asc_putText = function(v) { this.m_sText = v; };
asc_CCommentDataWord.prototype.asc_putText = function(v) { this.m_sText = v ? v.slice(0, c_oAscMaxCellOrCommentLength) : v; };
asc_CCommentDataWord.prototype.asc_getTime = function() { return this.m_sTime; };
asc_CCommentDataWord.prototype.asc_putTime = function(v) { this.m_sTime = v; };
asc_CCommentDataWord.prototype.asc_getUserId = function() { return this.m_sUserId; };
......
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