[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - sw/source

Bjoern Michaelsen bjoern.michaelsen at canonical.com
Sun Mar 9 09:53:12 PDT 2014


 sw/source/core/fields/cellfml.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3c0bc4edf5bde8e8494c2ef7e44105f9d90d85c3
Author: Bjoern Michaelsen <bjoern.michaelsen at canonical.com>
Date:   Fri Mar 7 12:50:46 2014 +0100

    fdo#75492: table names can start the same way and still be different
    
    Change-Id: Icc5a6fb7cf3ed3c2171e628d22918af7038f8127
    Reviewed-on: https://gerrit.libreoffice.org/8495
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/core/fields/cellfml.cxx b/sw/source/core/fields/cellfml.cxx
index dc07249..4a56bfb 100644
--- a/sw/source/core/fields/cellfml.cxx
+++ b/sw/source/core/fields/cellfml.cxx
@@ -698,7 +698,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() &&


More information about the Libreoffice-commits mailing list