[Libreoffice-commits] core.git: Branch 'libreoffice-4-3' - sw/source

Michael Stahl mstahl at redhat.com
Tue May 27 12:03:09 PDT 2014


 sw/source/core/fields/ddefld.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 9e7ed9d9c4f09e5549b1519a8547432fac5dfff5
Author: Michael Stahl <mstahl at redhat.com>
Date:   Tue May 27 20:30:19 2014 +0200

    fdo#78332: sw: fix separators in SwDDEFieldType::PutValue()
    
    Setting 3 separators instead of 2 does not work.
    
    (regression from 263153842741d7ce21cc0bf1c5296a55a1138024)
    
    Change-Id: Id0b4649404b8a49a7f89a237c46106bce4e146ff
    (cherry picked from commit 747bcdc14386978f2a98a452e52c8dcc2459d319)

diff --git a/sw/source/core/fields/ddefld.cxx b/sw/source/core/fields/ddefld.cxx
index f6dbf1b..d947ceb 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 );
     }


More information about the Libreoffice-commits mailing list