summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2018-01-14 17:46:55 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2018-02-11 15:42:55 +0100
commite3e9870aacdd8df1f449b802cd9dc3fbd083182f (patch)
tree4f1b631fcfea7e3b3fccfd8e3ee2fb49d75fd3fa
parent6c2b92a78d55b56cdb576dcf5b4b3cd2fb2820e4 (diff)
Change-Id: I90a4f30f8ec0e908a1cdf976979622be1284ec02
-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();