diff options
author | sj <sj@openoffice.org> | 2010-12-02 14:31:22 +0100 |
---|---|---|
committer | sj <sj@openoffice.org> | 2010-12-02 14:31:22 +0100 |
commit | 2e512af879c769bd29ddaf00dbd3eae60d3d4813 (patch) | |
tree | b5e83dd2502fb4215418a459484db389803a8d3a | |
parent | 23cdc612ccef2d48c6c5abad534f40990e921003 (diff) |
impress205: #i115825# fixed metatextarray issues
-rw-r--r-- | vcl/source/gdi/metaact.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx index 9a7fb6527e26..f398888a33b6 100644 --- a/vcl/source/gdi/metaact.cxx +++ b/vcl/source/gdi/metaact.cxx @@ -1481,6 +1481,12 @@ void MetaTextArrayAction::Read( SvStream& rIStm, ImplMetaReadData* pData ) sal_Unicode* pBuffer = maStr.AllocBuffer( nLen ); while ( nLen-- ) rIStm >> *pBuffer++; + + if ( mnIndex + mnLen > maStr.Len() ) + { + mnIndex = 0; + delete[] mpDXAry, mpDXAry = NULL; + } } } |