check stream status

Change-Id: I27bb289288d319a93201e9c3d703114924ca258c
This commit is contained in:
Caolán McNamara
2015-08-31 15:06:27 +01:00
parent ca77ec422e
commit daf1578d75
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@@ -650,7 +650,7 @@ void WMFReader::ReadRecordParams( sal_uInt16 nFunc )
pAcc = aBmp.AcquireWriteAccess(); pAcc = aBmp.AcquireWriteAccess();
if ( pAcc ) if ( pAcc )
{ {
for (sal_uInt16 y = 0; y < nHeight; y++ ) for (sal_uInt16 y = 0; y < nHeight && pWMF->good(); ++y)
{ {
sal_uInt16 x = 0; sal_uInt16 x = 0;
for (sal_uInt16 scan = 0; scan < nBytesPerScan; scan++ ) for (sal_uInt16 scan = 0; scan < nBytesPerScan; scan++ )