diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/app/appenv.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/app/appenv.cxx b/sw/source/uibase/app/appenv.cxx index fe03e3793423..8815f6a97ee2 100644 --- a/sw/source/uibase/app/appenv.cxx +++ b/sw/source/uibase/app/appenv.cxx @@ -109,8 +109,7 @@ OUString InsertLabEnvText( SwWrtShell& rSh, SwFieldMgr& rFieldMgr, const OUStrin // Database fields must contain at least 3 points! OUString sDBName( sTmpText.copy( 1, sTmpText.getLength() - 2)); - sal_uInt16 nCnt = comphelper::string::getTokenCount(sDBName, '.'); - if (nCnt >= 3) + if (comphelper::string::getTokenCount(sDBName, '.') >= 3) { sDBName = ::ReplacePoint(sDBName, true); SwInsertField_Data aData(TYP_DBFLD, 0, sDBName, aEmptyOUStr, 0, &rSh ); |