diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-05-27 20:30:19 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-05-27 20:52:53 +0200 |
commit | 747bcdc14386978f2a98a452e52c8dcc2459d319 (patch) | |
tree | 21c46d44ba863f42b17f1f4eca24613754fd4a9a /sw | |
parent | 054213e86b8f3b1084474b0447cc7ffaf82178c5 (diff) |
fdo#78332: sw: fix separators in SwDDEFieldType::PutValue()
Setting 3 separators instead of 2 does not work.
(regression from 263153842741d7ce21cc0bf1c5296a55a1138024)
Change-Id: Id0b4649404b8a49a7f89a237c46106bce4e146ff
Diffstat (limited to 'sw')
-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 ); } |