diff options
-rw-r--r-- | svl/source/numbers/zformat.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index 983b07550a3c..aa877b8acaec 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -528,8 +528,10 @@ void ImpSvNumFor::SaveNewCurrencyMap( SvStream& rStream ) const void ImpSvNumFor::LoadNewCurrencyMap( SvStream& rStream ) { sal_uInt16 nCnt; - rStream.ReadUInt16( nCnt ); - for ( sal_uInt16 j=0; j<nCnt; j++ ) + rStream.ReadUInt16(nCnt); + if (!nCnt) + return; + for (sal_uInt16 j=0; j < nCnt; ++j) { sal_uInt16 nPos; short nType; |