summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-03-07 12:50:46 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2014-03-07 12:51:37 +0100
commit7af06afee44f13f7f2cd69854a0e40e9ede7a378 (patch)
tree87ff95ca6827aafaa9f27be408662bdea6179f89
parentf8eb77651943a3f893c9426366b7d5374b28a3c7 (diff)
fdo#75492: table names can start the same way and still be different
Change-Id: Icc5a6fb7cf3ed3c2171e628d22918af7038f8127
-rw-r--r--sw/source/core/fields/cellfml.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/fields/cellfml.cxx b/sw/source/core/fields/cellfml.cxx
index 877e1af764e7..b3db34e49bef 100644
--- a/sw/source/core/fields/cellfml.cxx
+++ b/sw/source/core/fields/cellfml.cxx
@@ -696,7 +696,7 @@ const SwTable* SwTableFormula::FindTable( SwDoc& rDoc, const OUString& rNm ) con
SwFrmFmt* pFmt = rTblFmts[ --nFmtCnt ];
// if we are called from Sw3Writer, a number is dependent on the format name
SwTableBox* pFBox;
- if ( rNm.startsWith(pFmt->GetName().getToken(0, 0x0a)) &&
+ if ( rNm.equals(pFmt->GetName().getToken(0, 0x0a)) &&
0 != ( pTmpTbl = SwTable::FindTable( pFmt ) ) &&
0 != (pFBox = pTmpTbl->GetTabSortBoxes()[0] ) &&
pFBox->GetSttNd() &&