Commit a51f80c4 authored by Alexander.Trofimov's avatar Alexander.Trofimov

_isEmptyRange:

range.getValueWithoutFormat -> cell.isEmptyText
parent 0bea5ab2
...@@ -4928,26 +4928,17 @@ ...@@ -4928,26 +4928,17 @@
return result; return result;
}, },
_isEmptyRange: function(activeCells) _isEmptyRange: function(ar)
{ {
var worksheet = this.worksheet; var range = this.worksheet.getRange3(Math.max(0, ar.r1 - 1), Math.max(0, ar.c1 - 1), ar.r2 + 1, ar.c2 + 1);
var cell; var res = true;
for(var n = activeCells.r1 - 1; n <= activeCells.r2 + 1; n++) range._foreachNoEmpty(function (cell) {
{ if (!cell.isEmptyText()) {
if(n < 0) res = false;
n = 0; return true;
for(var k = activeCells.c1 - 1; k <= activeCells.c2 + 1; k++)
{
if(k < 0)
k = 0;
cell = worksheet.getCell3(n, k, n, k);
if(cell.getValueWithoutFormat() != '')
return false;
} }
} });
return true; return res;
}, },
_setStyleTables: function(range) _setStyleTables: function(range)
......
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