summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-11-16 13:49:38 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-11-16 13:50:24 +0000
commit0d20c6abe9058e3e164483ca556fab9b7c6df56b (patch)
treeb7e36ff04de2d6b45fd8ad4812317fe2cfb386db
parente3b1c791f19276aa85e739ea7e1b7011d058f560 (diff)
fail earlier
Change-Id: I8a4f93eea723075103ccdc21e894f44d3bdb7c06
-rw-r--r--sw/source/filter/ww8/ww8par.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index 39b235199e26..4476ffdf1573 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -4828,7 +4828,11 @@ void WW8Customizations::Import( SwDocShell* pShell )
{
Tcg aTCG;
long nCur = mpTableStream->Tell();
- mpTableStream->Seek( mWw8Fib.m_fcCmds ); // point at tgc record
+ if (!checkSeek(*mpTableStream, mWw8Fib.m_fcCmds)) // point at tgc record
+ {
+ SAL_WARN("sw.ww8", "** Seek to Customization data failed!!!! ");
+ return;
+ }
bool bReadResult = aTCG.Read( *mpTableStream );
mpTableStream->Seek( nCur ); // return to previous position, is that necessary?
if ( !bReadResult )