diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-02-19 22:08:12 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-02-20 00:48:41 +0100 |
commit | 8c40ccb9f603d3062cdfd8e31453c86efdea1ac9 (patch) | |
tree | 6c21225788e0460ad35ce48997c31263d314d3d5 /sw | |
parent | dd15748d4a1a5bae3aea85ea086035e7e45aec4a (diff) |
SwTxtNode::GetExpandTxt: fix an assertion
Change-Id: Idcca5e38f0cabe1f20e8209a1819660916042f8e
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/txtnode/ndtxt.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx index 1b8b8c3c006f..986611721d4a 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -2928,7 +2928,8 @@ XubString SwTxtNode::GetExpandTxt( const xub_StrLen nIdx, const bool bAddSpaceAfterListLabelStr, const bool bWithSpacesForLevel ) const { - XubString aTxt( GetTxt().copy(nIdx, nLen) ); + XubString aTxt( + (STRING_LEN == nLen) ? GetTxt().copy(nIdx) : GetTxt().copy(nIdx, nLen)); xub_StrLen nTxtStt = nIdx; Replace0xFF( aTxt, nTxtStt, aTxt.Len(), sal_True ); if( bWithNum ) |