diff options
-rw-r--r-- | sw/source/core/fields/ddefld.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/fields/ddefld.cxx b/sw/source/core/fields/ddefld.cxx index f6dbf1b91ca0..d947cebad397 100644 --- a/sw/source/core/fields/ddefld.cxx +++ b/sw/source/core/fields/ddefld.cxx @@ -366,7 +366,8 @@ bool SwDDEFieldType::PutValue( const uno::Any& rVal, sal_uInt16 nWhichId ) { rVal >>= sToken; } - sNewCmd += sToken + OUString(sfx2::cTokenSeparator); + sNewCmd += (i < 2) + ? sToken + OUString(sfx2::cTokenSeparator) : sToken; } SetCmd( sNewCmd ); } |