summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-01-24 21:23:22 +0100
committerEike Rathke <erack@redhat.com>2017-01-25 11:47:28 +0100
commit81845445de26111eb0b7e30f45b3708389fd76cf (patch)
treedd93c35e7d41692d25bcd4c91c8bef1ce1fe862b
parent2608523b69fd6f1d888a74674a6ec795b4ad3aad (diff)
ScFormulaListener: do not start listening to clipboard or Undo docs
Change-Id: Ic00e30eccc64cc85ee877572ef8df042899f45f5
-rw-r--r--sc/source/core/data/colorscale.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx
index 2690be1aa5e3..dbce784686f4 100644
--- a/sc/source/core/data/colorscale.cxx
+++ b/sc/source/core/data/colorscale.cxx
@@ -36,7 +36,7 @@ ScFormulaListener::ScFormulaListener(ScDocument* pDoc):
void ScFormulaListener::startListening(ScTokenArray* pArr, const ScRange& rRange)
{
- if (!pArr)
+ if (!pArr || mpDoc->IsClipOrUndo())
return;
pArr->Reset();
@@ -123,6 +123,9 @@ private:
void ScFormulaListener::stopListening()
{
+ if (mpDoc->IsClipOrUndo())
+ return;
+
std::for_each(maCells.begin(), maCells.end(), StopListeningCell(mpDoc, this));
}