summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-12-09 16:03:39 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-12-09 16:23:26 +0000
commit76358a71a937b5af93e4257c0dd0c1cf0e9b7ab7 (patch)
tree7f226f70c880a39d6648e13226303956b0229737
parente1c32b3e597eca6934866a4917411c30c5fb1791 (diff)
Resolves: fdo#86786 take of a copy of the MarkData
so macros that trigger on changed data don't change invalidate interators into them behind our back Change-Id: Ib7e626b4ec3eea3bd0b1f57f17280a008bb4060e (cherry picked from commit 1c43d48c62db766ffdf23e8f20ed07cbd7a660ee)
-rw-r--r--sc/source/ui/view/viewfunc.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index d9fc03a3519f..ba1d4322dd60 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -332,13 +332,12 @@ namespace HelperNotifyChanges
// actual functions
// input - undo OK
-
void ScViewFunc::EnterData( SCCOL nCol, SCROW nRow, SCTAB nTab,
const OUString& rString,
const EditTextObject* pData )
{
ScDocument* pDoc = GetViewData().GetDocument();
- ScMarkData& rMark = GetViewData().GetMarkData();
+ ScMarkData rMark(GetViewData().GetMarkData());
bool bRecord = pDoc->IsUndoEnabled();
SCTAB i;