diff options
author | Eike Rathke <erack@redhat.com> | 2017-01-24 21:23:22 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-01-25 19:14:54 +0000 |
commit | 56b76f27b1f9e8c9af005be0121f39ba4a073d8d (patch) | |
tree | 400fd56497491c904ee987ad077e965915b8ef5d /sc/source | |
parent | d7858b0d23f88a3ecec4ed7cc863ee0867086209 (diff) |
ScFormulaListener: do not start listening to clipboard or Undo docs
Change-Id: Ic00e30eccc64cc85ee877572ef8df042899f45f5
(cherry picked from commit 81845445de26111eb0b7e30f45b3708389fd76cf)
Reviewed-on: https://gerrit.libreoffice.org/33527
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/data/colorscale.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx index 5f87b328538a..cb7599e0db53 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)); } |