filter/source/msfilter/svdfppt.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 2002b7b1fcbbdbc185ce08e6d92d4c6116de08e6
Author: Caolán McNamara <caol...@redhat.com>
Date:   Sat Oct 21 18:33:20 2017 +0100

    check seek succeeded
    
    Change-Id: I2bbee3adde8f36be7ebc6b4555d9417c3add00a3
    Reviewed-on: https://gerrit.libreoffice.org/43669
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/filter/source/msfilter/svdfppt.cxx 
b/filter/source/msfilter/svdfppt.cxx
index f3e7887bfda9..30dcfd3b1223 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -1319,9 +1319,8 @@ SdrPowerPointImport::SdrPowerPointImport( 
PowerPointImportParam& rParam, const O
 
         // try to allocate the UserEditAtom via CurrentUserAtom
         sal_uInt32 nCurrentUserEdit = rParam.aCurrentUserAtom.nCurrentUserEdit;
-        if ( nCurrentUserEdit )
+        if (nCurrentUserEdit && checkSeek(rStCtrl, nCurrentUserEdit))
         {
-            rStCtrl.Seek( nCurrentUserEdit );
             ReadPptUserEditAtom( rStCtrl, aUserEditAtom );
         }
         if ( !aUserEditAtom.nOffsetPersistDirectory )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to