[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - sw/source

Michael Stahl mstahl at redhat.com
Mon Jul 20 14:21:14 PDT 2015


 sw/source/core/unocore/unoflatpara.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit b820d868918fbb04f16bbb1935bc98f40376309d
Author: Michael Stahl <mstahl at redhat.com>
Date:   Mon Jul 20 20:41:43 2015 +0200

    sw: SwXFlatParagraph::isChecked() return value is inverted
    
    It was checked if the flag says it's not dirty.
    Thanks to Varun Dhall for pointing to this problem.
    
    (cherry picked from commit 0a91e08a46118b495f80f7901b2132b194d6d409)
    
    Change-Id: I4aa1fef8b2251f0f3e579930b39d6d5a256c1895
    Reviewed-on: https://gerrit.libreoffice.org/17243
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
    Tested-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>

diff --git a/sw/source/core/unocore/unoflatpara.cxx b/sw/source/core/unocore/unoflatpara.cxx
index 22fe58a..bec164a 100644
--- a/sw/source/core/unocore/unoflatpara.cxx
+++ b/sw/source/core/unocore/unoflatpara.cxx
@@ -218,14 +218,14 @@ sal_Bool SAL_CALL SwXFlatParagraph::isChecked( ::sal_Int32 nType ) throw (uno::R
     if (GetTextNode())
     {
         if ( text::TextMarkupType::SPELLCHECK == nType )
-            return GetTextNode()->IsWrongDirty();
+            return !GetTextNode()->IsWrongDirty();
         else if ( text::TextMarkupType::PROOFREADING == nType )
-            return GetTextNode()->IsGrammarCheckDirty();
+            return !GetTextNode()->IsGrammarCheckDirty();
         else if ( text::TextMarkupType::SMARTTAG == nType )
-            return GetTextNode()->IsSmartTagDirty();
+            return !GetTextNode()->IsSmartTagDirty();
     }
 
-    return sal_False;
+    return sal_True;
 }
 
 // text::XFlatParagraph:


More information about the Libreoffice-commits mailing list