diff options
Diffstat (limited to 'sot/source/sdstor/stgdir.cxx')
-rw-r--r-- | sot/source/sdstor/stgdir.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sot/source/sdstor/stgdir.cxx b/sot/source/sdstor/stgdir.cxx index c02786770c4b..6aed09b970ea 100644 --- a/sot/source/sdstor/stgdir.cxx +++ b/sot/source/sdstor/stgdir.cxx @@ -416,7 +416,8 @@ sal_Int32 StgDirEntry::Seek( sal_Int32 nNew ) { if ( !( nMode & STREAM_WRITE ) || !SetSize( nNew ) ) { - OSL_ENSURE( nMode & STREAM_WRITE, "Trying to resize readonly stream by seeking, could be a wrong offset!" ); + SAL_WARN_IF(!(nMode & STREAM_WRITE), "sot", + "Trying to resize readonly stream by seeking, could be a wrong offset: " << nNew); return nPos; } else |