[Libreoffice-commits] .: sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Jan 18 05:13:31 PST 2013


 sc/source/ui/app/scmod.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 6d36a31df1726e45d5c4e3623354afe5c5ab814d
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Fri Jan 18 14:14:32 2013 +0100

    make sure we call SetInRefMode only once
    
    Change-Id: I16ff8b6aaa24b1f8522117197226db39f0617fad

diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index 9f406d7..d4ed9da 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)
     {


More information about the Libreoffice-commits mailing list