diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-10-21 18:33:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-10-21 22:05:09 +0200 |
commit | 2002b7b1fcbbdbc185ce08e6d92d4c6116de08e6 (patch) | |
tree | 67c48869c008ea8cb88e32beb03d19a397a3fbde | |
parent | 2e64d2c0447f4ac73914cb1308cff1aca0d4bdc2 (diff) |
check seek succeeded
Change-Id: I2bbee3adde8f36be7ebc6b4555d9417c3add00a3
Reviewed-on: https://gerrit.libreoffice.org/43669
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | filter/source/msfilter/svdfppt.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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 ) |