diff options
author | Eike Rathke <erack@redhat.com> | 2015-08-18 13:54:32 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-08-18 14:01:10 +0200 |
commit | 1bea8310747b65516f40f6457ab1d174ef7ddce4 (patch) | |
tree | a9d20d33222ad140a82a04f224a5e21c3429d3af /sc/source/core/data/documen7.cxx | |
parent | ba5fd0cc77d7d53004f46e4ca867a22d56c5baa7 (diff) |
introduce temporary hard-recalc state, tdf#92749 follow-up
This allows listeners to be setup and initial lookup caches to be kept,
which were thrown away after the initial calculation as an interim fix
for tdf#92749.
Change-Id: I34068b3f6b833a46f3c526579efbdc342a2e71df
Diffstat (limited to 'sc/source/core/data/documen7.cxx')
-rw-r--r-- | sc/source/core/data/documen7.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/core/data/documen7.cxx b/sc/source/core/data/documen7.cxx index 7d0315a9ff5e..cb3ba0536111 100644 --- a/sc/source/core/data/documen7.cxx +++ b/sc/source/core/data/documen7.cxx @@ -62,7 +62,7 @@ void ScDocument::Broadcast( const ScHint& rHint ) { if ( !pBASM ) return ; // Clipboard or Undo - if ( !bHardRecalcState ) + if ( eHardRecalcState == HARDRECALCSTATE_OFF ) { ScBulkBroadcast aBulkBroadcast( pBASM); // scoped bulk broadcast bool bIsBroadcasted = false; @@ -110,7 +110,7 @@ void ScDocument::BroadcastCells( const ScRange& rRange, sal_uLong nHint, bool bB SCCOL nCol1 = rRange.aStart.Col(); SCCOL nCol2 = rRange.aEnd.Col(); - if (!bHardRecalcState) + if (eHardRecalcState == HARDRECALCSTATE_OFF) { ScBulkBroadcast aBulkBroadcast( pBASM); // scoped bulk broadcast bool bIsBroadcasted = false; @@ -260,7 +260,7 @@ void ScDocument::AreaBroadcast( const ScHint& rHint ) { if ( !pBASM ) return ; // Clipboard or Undo - if ( !bHardRecalcState ) + if (eHardRecalcState == HARDRECALCSTATE_OFF) { ScBulkBroadcast aBulkBroadcast( pBASM); // scoped bulk broadcast if ( pBASM->AreaBroadcast( rHint ) ) @@ -418,7 +418,7 @@ void ScDocument::CalcFormulaTree( bool bOnlyForced, bool bProgressBar, bool bSet //ATTENTION: _not_ SetAutoCalc( true ) because this might call CalcFormulaTree( true ) //ATTENTION: if it was disabled before and bHasForcedFormulas is set bAutoCalc = true; - if ( bHardRecalcState ) + if (eHardRecalcState != HARDRECALCSTATE_OFF) CalcAll(); else { |