Kaydet (Commit) 5f01b298 authored tarafından Eike Rathke's avatar Eike Rathke

sc-perf: StartAllListeners: bail out early in cliboard or undo document

... and do not attempt to execute the overhead for all columns in the range
just to do nothing.

Change-Id: I88d26895cf641e8c71d7ccdf5534de8008070e61
üst dfa92e10
...@@ -469,6 +469,9 @@ void ScDocument::StartNeededListeners( const std::shared_ptr<const sc::ColumnSet ...@@ -469,6 +469,9 @@ void ScDocument::StartNeededListeners( const std::shared_ptr<const sc::ColumnSet
void ScDocument::StartAllListeners( const ScRange& rRange ) void ScDocument::StartAllListeners( const ScRange& rRange )
{ {
if (IsClipOrUndo() || GetNoListening())
return;
std::shared_ptr<sc::ColumnBlockPositionSet> pPosSet(new sc::ColumnBlockPositionSet(*this)); std::shared_ptr<sc::ColumnBlockPositionSet> pPosSet(new sc::ColumnBlockPositionSet(*this));
sc::StartListeningContext aStartCxt(*this, pPosSet); sc::StartListeningContext aStartCxt(*this, pPosSet);
sc::EndListeningContext aEndCxt(*this, pPosSet); sc::EndListeningContext aEndCxt(*this, pPosSet);
......
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