summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/doc/doctxm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx
index aa2bee2db1ad..a5250bfd8463 100644
--- a/sw/source/core/doc/doctxm.cxx
+++ b/sw/source/core/doc/doctxm.cxx
@@ -639,7 +639,7 @@ OUString SwDoc::GetUniqueTOXBaseName( const SwTOXType& rType,
if (rSect.GetType()==TOX_CONTENT_SECTION)
{
const OUString rNm = rSect.GetSectionName();
- if ( aName.startsWith(rNm) )
+ if ( rNm.startsWith(aName) )
{
// Calculate number and set the Flag
nNum = rNm.copy( nNmLen ).toInt32();