Kaydet (Commit) 747bcdc1 authored tarafından Michael Stahl's avatar Michael Stahl

fdo#78332: sw: fix separators in SwDDEFieldType::PutValue()

Setting 3 separators instead of 2 does not work.

(regression from 26315384)

Change-Id: Id0b4649404b8a49a7f89a237c46106bce4e146ff
üst 054213e8
...@@ -366,7 +366,8 @@ bool SwDDEFieldType::PutValue( const uno::Any& rVal, sal_uInt16 nWhichId ) ...@@ -366,7 +366,8 @@ bool SwDDEFieldType::PutValue( const uno::Any& rVal, sal_uInt16 nWhichId )
{ {
rVal >>= sToken; rVal >>= sToken;
} }
sNewCmd += sToken + OUString(sfx2::cTokenSeparator); sNewCmd += (i < 2)
? sToken + OUString(sfx2::cTokenSeparator) : sToken;
} }
SetCmd( sNewCmd ); SetCmd( sNewCmd );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment