summaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-12 08:51:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-12 08:51:45 +0100
commitfad50e6a8c95412aeb4a2490ceab0c8d4f402919 (patch)
tree5487ec3b67f643883ac2a06ee1a70cce39b9abfa /filter
parentavoid optimization turning into pessimisation for stupid strings (diff)
downloadcore-fad50e6a8c95412aeb4a2490ceab0c8d4f402919.tar.gz
core-fad50e6a8c95412aeb4a2490ceab0c8d4f402919.zip
check if seek succeeded
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/msdffimp.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index c0b10b85e9b2..02861f911c0a 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -6671,10 +6671,10 @@ sal_Bool SvxMSDffManager::GetShape(sal_uLong nId, SdrObject*& rpShape,
sal_uLong nOldPosCtrl = rStCtrl.Tell();
sal_uLong nOldPosData = pStData ? pStData->Tell() : nOldPosCtrl;
// das Shape im Steuer Stream anspringen
- rStCtrl.Seek( rInfo.nFilePos );
+ bool bSeeked = (rInfo.nFilePos == rStCtrl.Seek(rInfo.nFilePos));
// Falls missglueckt, den Fehlerstatus zuruecksetzen und Pech gehabt!
- if( rStCtrl.GetError() )
+ if (!bSeeked || rStCtrl.GetError())
rStCtrl.ResetError();
else
rpShape = ImportObj( rStCtrl, &rData, rData.aParentRect, rData.aParentRect );