diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-06-24 11:52:47 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-06-30 23:00:11 +0200 |
commit | 21c839d6f69fbddb7850444187eecec1f4f2f27f (patch) | |
tree | 40aa5fea4bfba87ba7f0848bd5e3dd6d8603ffd9 /sw | |
parent | 051d4fdaea9321732a141db16f61dfd9af744303 (diff) |
Not empty OUString has at least one token
Change-Id: I02dd1c045af1367ae56eeb60dad23912111dcd6f
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unofield.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx index 00c8677a5136..97bfb73358b9 100644 --- a/sw/source/core/unocore/unofield.cxx +++ b/sw/source/core/unocore/unofield.cxx @@ -2680,8 +2680,7 @@ static SwFieldIds lcl_GetIdByName( OUString& rName, OUString& rTypeName ) else if (rTypeName.equalsIgnoreAsciiCase("DataBase")) { rName = rName.copy(RTL_CONSTASCII_LENGTH("DataBase.")); - const sal_Int32 nDotCount = comphelper::string::getTokenCount(rName, '.'); - if( 1 <= nDotCount ) + if (!rName.isEmpty()) { // #i51815# rName = "DataBase." + rName; |