diff options
author | Eike Rathke <erack@redhat.com> | 2015-09-04 19:44:47 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-09-04 21:14:43 +0200 |
commit | 757996aa2879a2ea850055bafa60edb66548dffd (patch) | |
tree | 40739cb9b613b87ba99cd18e2acdec8837df7336 /sc | |
parent | 31ab5d7140400c5f1c2493656e032599ea601555 (diff) |
TableRef: unconditionally init dirty and check for refresh
Change-Id: I7746cca2d32d242b6300311fbe7bfe63caf9dfc9
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/dbdata.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/core/tool/dbdata.cxx b/sc/source/core/tool/dbdata.cxx index 6d0c62bbce56..1b98b0050884 100644 --- a/sc/source/core/tool/dbdata.cxx +++ b/sc/source/core/tool/dbdata.cxx @@ -77,7 +77,7 @@ ScDBData::ScDBData( const OUString& rName, nIndex (0), bAutoFilter (false), bModified (false), - mbTableColumnNamesDirty(bHasH) + mbTableColumnNamesDirty(true) { aUpper = ScGlobal::pCharClass->uppercase(aUpper); } @@ -832,12 +832,13 @@ void ScDBData::RefreshTableColumnNames( ScDocument* pDoc ) void ScDBData::RefreshTableColumnNames( ScDocument* pDoc, const ScRange& rRange ) { // Header-less tables get names generated, completely empty a full refresh. - if (!HasHeader() || maTableColumnNames.empty()) + if (mbTableColumnNamesDirty && (!HasHeader() || maTableColumnNames.empty())) { RefreshTableColumnNames( pDoc); return; } + // Check if this is affected for the range requested. ScRange aHeaderRange( ScAddress::UNINITIALIZED); GetArea( aHeaderRange); aHeaderRange.aEnd.SetRow( aHeaderRange.aStart.Row()); |