sw/source/filter/ww8/ww8par.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 0d20c6abe9058e3e164483ca556fab9b7c6df56b
Author: Caolán McNamara <caol...@redhat.com>
Date:   Thu Nov 16 13:49:38 2017 +0000

    fail earlier
    
    Change-Id: I8a4f93eea723075103ccdc21e894f44d3bdb7c06

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 )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to