diff options
author | Eike Rathke <erack@redhat.com> | 2015-07-29 13:25:57 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-07-29 13:46:29 +0200 |
commit | d55a6d6d1f9be6b33541d82e57d2397a367c1c43 (patch) | |
tree | 94a6cabf4cdbf7fbeaf6af1fca6f22465f402527 /sc | |
parent | ef6fa18ffca3ad1b5cc55dc07b922803c4551b6f (diff) |
TableRef: invalidate column names/offsets only if column span differs
Change-Id: I210323612e2aece7cc0bb8705396e3e6503c1260
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/dbdata.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/tool/dbdata.cxx b/sc/source/core/tool/dbdata.cxx index 92c47e56928d..5573fa7877c1 100644 --- a/sc/source/core/tool/dbdata.cxx +++ b/sc/source/core/tool/dbdata.cxx @@ -276,7 +276,8 @@ void ScDBData::GetArea(ScRange& rRange) const void ScDBData::SetArea(SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2) { - ::std::vector<OUString>().swap( maTableColumnNames); // invalidate column names/offsets + if (nCol2 - nCol1 != nEndCol - nStartCol) + ::std::vector<OUString>().swap( maTableColumnNames); // invalidate column names/offsets nTable = nTab; nStartCol = nCol1; |