Kaydet (Commit) 6d36a31d authored tarafından Markus Mohrhard's avatar Markus Mohrhard

make sure we call SetInRefMode only once

Change-Id: I16ff8b6aaa24b1f8522117197226db39f0617fad
üst 1de8d78a
...@@ -2317,6 +2317,11 @@ void ScModule::PushNewAnyRefDlg( ScAnyRefModalDlg* pNewDlg ) ...@@ -2317,6 +2317,11 @@ void ScModule::PushNewAnyRefDlg( ScAnyRefModalDlg* pNewDlg )
{ {
maAnyRefDlgStack.push( pNewDlg ); maAnyRefDlgStack.push( pNewDlg );
// prevent mismatch between calls to
// SetInRefMode(true) and SetInRefMode(false)
if(maAnyRefDlgStack.size() != 1)
return;
SfxViewShell* pViewShell = SfxViewShell::GetFirst(); SfxViewShell* pViewShell = SfxViewShell::GetFirst();
while(pViewShell) while(pViewShell)
{ {
......
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