diff options
Diffstat (limited to 'vcl/source/edit/texteng.cxx')
-rw-r--r-- | vcl/source/edit/texteng.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index bac8fdbd48d0..f4a11a2d0ec3 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -2520,7 +2520,7 @@ bool TextEngine::Read( SvStream& rInput, const TextSelection* pSel ) SetUpdateMode( bUpdate ); FormatAndUpdate( GetActiveView() ); - return rInput.GetError() ? false : true; + return rInput.GetError() == 0; } bool TextEngine::Write( SvStream& rOutput, const TextSelection* pSel, bool bHTML ) @@ -2608,7 +2608,7 @@ bool TextEngine::Write( SvStream& rOutput, const TextSelection* pSel, bool bHTML rOutput.WriteLine( "</HTML>" ); } - return rOutput.GetError() ? false : true; + return rOutput.GetError() == 0; } void TextEngine::RemoveAttribs( sal_uLong nPara, bool bIdleFormatAndUpdate ) |