diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-11-11 21:12:34 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-11-12 01:11:00 +0100 |
commit | 3c5addae5c1bb88c308dbacd545ca52d597e39fb (patch) | |
tree | b58aaacf4a485fc3b29dbe178c5b4f874c5acde9 /editeng | |
parent | e2b748e0a4ab7a33dd9ebde1d7f37776dff60c3b (diff) |
ofz: Timeout give up earlier on SvParserState::Error
Change-Id: I191f935c11bc59e0b1a990ac5d3c38a49390afd1
Reviewed-on: https://gerrit.libreoffice.org/44644
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/rtf/svxrtf.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx index 568abc078757..b62940dfc8b3 100644 --- a/editeng/source/rtf/svxrtf.cxx +++ b/editeng/source/rtf/svxrtf.cxx @@ -127,12 +127,13 @@ void SvxRTFParser::Continue( int nToken ) { SvRTFParser::Continue( nToken ); - if( SvParserState::Pending != GetStatus() ) + SvParserState eStatus = GetStatus(); + if (eStatus != SvParserState::Pending && eStatus != SvParserState::Error) { SetAllAttrOfStk(); //Regardless of what "color 0" is, word defaults to auto as the default colour. //e.g. see #i7713# - } + } } |