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

New commits:
commit b820d868918fbb04f16bbb1935bc98f40376309d
Author: Michael Stahl <mst...@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.behr...@cib.de>
    Tested-by: Thorsten Behrens <thorsten.behr...@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:
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to