summaryrefslogtreecommitdiff
path: root/sc/source/ui/app
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-01-18 14:14:32 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-01-18 14:15:07 +0100
commit6d36a31df1726e45d5c4e3623354afe5c5ab814d (patch)
tree0b3fab95666c8ac6a408defe1641424134aa0e2f /sc/source/ui/app
parent1de8d78a8ee6ddd6f2b175330fcb709f56b35960 (diff)
make sure we call SetInRefMode only once
Change-Id: I16ff8b6aaa24b1f8522117197226db39f0617fad
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r--sc/source/ui/app/scmod.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index 9f406d724f12..d4ed9daca3c1 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -2317,6 +2317,11 @@ void ScModule::PushNewAnyRefDlg( ScAnyRefModalDlg* pNewDlg )
{
maAnyRefDlgStack.push( pNewDlg );
+ // prevent mismatch between calls to
+ // SetInRefMode(true) and SetInRefMode(false)
+ if(maAnyRefDlgStack.size() != 1)
+ return;
+
SfxViewShell* pViewShell = SfxViewShell::GetFirst();
while(pViewShell)
{