summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-07-20 20:41:43 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2015-07-20 21:20:45 +0000
commitb820d868918fbb04f16bbb1935bc98f40376309d (patch)
tree9b99fd2f2f4d279749c59ac0168a9cc895df74bc /sw
parent2acb668ad89a9e023561f39df7891be1ee454391 (diff)
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@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/unocore/unoflatpara.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/unocore/unoflatpara.cxx b/sw/source/core/unocore/unoflatpara.cxx
index 22fe58a24212..bec164a03bfd 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: