diff options
-rw-r--r-- | sd/qa/unit/data/ppt/pass/hang-10.ppt | bin | 0 -> 7648 bytes | |||
-rw-r--r-- | sd/source/filter/ppt/pptin.cxx | 6 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sd/qa/unit/data/ppt/pass/hang-10.ppt b/sd/qa/unit/data/ppt/pass/hang-10.ppt Binary files differnew file mode 100644 index 000000000000..99a81c4a3362 --- /dev/null +++ b/sd/qa/unit/data/ppt/pass/hang-10.ppt diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx index 7565fd45bbb3..0b2c0c813e28 100644 --- a/sd/source/filter/ppt/pptin.cxx +++ b/sd/source/filter/ppt/pptin.cxx @@ -780,7 +780,8 @@ bool ImplSdPPTImport::Import() if ( nObjCount++ ) // skipping the first object { Rectangle aEmpty; - aHd2.SeekToBegOfRecord( rStCtrl ); + if (!aHd2.SeekToBegOfRecord( rStCtrl )) + break; SdrObject* pImpObj = ImportObj( rStCtrl, (void*)&aProcessData, aEmpty, aEmpty ); if ( pImpObj ) { @@ -789,7 +790,8 @@ bool ImplSdPPTImport::Import() } } } - aHd2.SeekToEndOfRecord( rStCtrl ); + if (!aHd2.SeekToEndOfRecord(rStCtrl)) + break; } } } |