summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/layout/laycache.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/layout/laycache.cxx b/sw/source/core/layout/laycache.cxx
index 7124158e58f0..06b0f3f7c54b 100644
--- a/sw/source/core/layout/laycache.cxx
+++ b/sw/source/core/layout/laycache.cxx
@@ -223,7 +223,7 @@ void SwLayoutCache::Write( SvStream &rStream, const SwDoc& rDoc )
assert(pTab && "Table follow without master");
}
}
- do
+ while (1)
{
sal_uLong nNdIdx =
pTab->GetTable()->GetTableNode()->GetIndex();
@@ -268,7 +268,7 @@ void SwLayoutCache::Write( SvStream &rStream, const SwDoc& rDoc )
}
else
break;
- } while( pTab );
+ }
}
}
}