Kaydet (Commit) 8f205385 authored tarafından Michael Stahl's avatar Michael Stahl Kaydeden (comit) Andras Timar

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 0a91e08a)

Change-Id: I4aa1fef8b2251f0f3e579930b39d6d5a256c1895
Reviewed-on: https://gerrit.libreoffice.org/17243Reviewed-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: 's avatarThorsten Behrens <Thorsten.Behrens@CIB.de>
üst cced3906
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment