Kaydet (Commit) 5c832532 authored tarafından Caolán McNamara's avatar Caolán McNamara

don't hang if at end of stream

Change-Id: I497a30041ec667237c2aa64963dcefb67753e87c
üst 8547c336
This diff is collapsed.
......@@ -86,8 +86,7 @@ OString DXFReadLine(SvStream& rIStm)
void DXFSkipLine(SvStream& rIStm)
{
while (!rIStm.GetError()) // !!! do not check for EOF
// !!! because we read blockwise
while (rIStm.good())
{
char buf[256 + 1];
sal_uInt16 nLen = (sal_uInt16)rIStm.Read(buf, sizeof(buf) - 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment