[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Wed Feb 2 12:43:23 PST 2011


 sc/source/ui/miscdlgs/acredlin.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit bf8510b0b8839b60531578620ad4b2efb01684e5
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Wed Feb 2 15:41:17 2011 -0500

    Disambiguate nested if statement blocks.
    
    No idea how the parser parses that block, but I made the branching
    explicit, as interpreted by the way the lines are indented.

diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx
index ceba5b4..d4ea8de 100644
--- a/sc/source/ui/miscdlgs/acredlin.cxx
+++ b/sc/source/ui/miscdlgs/acredlin.cxx
@@ -343,8 +343,10 @@ BOOL ScAcceptChgDlg::IsValidAction(const ScChangeAction* pScChangeAction)
     aComment.EraseAllChars('\n');
 
     if(eType==SC_CAT_CONTENT)
+    {
         if(!pScChangeAction->IsDialogParent())
             pScChangeAction->GetDescription( aDesc, pDoc, TRUE);
+    }
     else
         pScChangeAction->GetDescription( aDesc, pDoc,!pScChangeAction->IsMasterDelete());
 


More information about the Libreoffice-commits mailing list