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

ScFormulaListener: do not start listening to clipboard or Undo docs

Change-Id: Ic00e30eccc64cc85ee877572ef8df042899f45f5
üst 2608523b
......@@ -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));
}
......
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