Commit 78ac69c6 authored by GoshaZotov's avatar GoshaZotov

lock def. names(paste tables)

parent 8bf9aab0
...@@ -8763,13 +8763,10 @@ ...@@ -8763,13 +8763,10 @@
//добавляем автофильтры и форматированные таблицы //добавляем автофильтры и форматированные таблицы
if (isLocal === 'binary' && val.TableParts && val.TableParts.length) { if (isLocal === 'binary' && val.TableParts && val.TableParts.length) {
var aFilters = val.TableParts;
var range;
var tablePartRange;
var activeRange = window["Asc"]["editor"].wb.clipboard.pasteProcessor.activeRange; var activeRange = window["Asc"]["editor"].wb.clipboard.pasteProcessor.activeRange;
var refInsertBinary = AscCommonExcel.g_oRangeCache.getAscRange(activeRange); var refInsertBinary = AscCommonExcel.g_oRangeCache.getAscRange(activeRange);
var diffRow; var diffRow, range, tablePartRange, diffCol, bIsAddTable, aFilters = val.TableParts;
var diffCol;
for (var aF = 0; aF < aFilters.length; aF++) { for (var aF = 0; aF < aFilters.length; aF++) {
tablePartRange = aFilters[aF].Ref; tablePartRange = aFilters[aF].Ref;
diffRow = tablePartRange.r1 - refInsertBinary.r1; diffRow = tablePartRange.r1 - refInsertBinary.r1;
...@@ -8805,6 +8802,13 @@ ...@@ -8805,6 +8802,13 @@
t.model.autoFilters.addAutoFilter(aFilters[aF].TableStyleInfo.Name, range.bbox, true, true, t.model.autoFilters.addAutoFilter(aFilters[aF].TableStyleInfo.Name, range.bbox, true, true,
bWithoutFilter, null, stylePasteObj); bWithoutFilter, null, stylePasteObj);
bIsAddTable = true;
}
//лочим именованные диапазоны если вставили новую ф/т
if(bIsAddTable)
{
t._isLockedDefNames(null, null);
} }
} }
......
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