[Libreoffice-commits] core.git: sw/source

Stephan Bergmann sbergman at redhat.com
Mon Mar 11 05:59:12 PDT 2013


 sw/source/ui/envelp/label1.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0b4b37ac7bfe0a6177641f534df1afbb4a911059
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Mar 11 13:58:48 2013 +0100

    MSVC fix
    
    Change-Id: I260aa919a618d0770afaa7e62d82f7f3873eb63d

diff --git a/sw/source/ui/envelp/label1.cxx b/sw/source/ui/envelp/label1.cxx
index e892988..11ca073 100644
--- a/sw/source/ui/envelp/label1.cxx
+++ b/sw/source/ui/envelp/label1.cxx
@@ -368,7 +368,7 @@ IMPL_LINK_NOARG(SwLabPage, FieldHdl)
 {
     OUString aStr("<" + OUString(aDatabaseLB.GetSelectEntry()) + "." +
                   OUString(aTableLB.GetSelectEntry()) + "." +
-                  OUString(aTableLB.GetEntryData(aTableLB.GetSelectEntryPos()) == 0 ? "0" : "1") + "." +
+                  (aTableLB.GetEntryData(aTableLB.GetSelectEntryPos()) == 0 ? OUString("0") : OUString("1")) + "." +
                   aDBFieldLB.GetSelectEntry() + ">");
     aWritingEdit.ReplaceSelected(aStr);
     Selection aSel = aWritingEdit.GetSelection();


More information about the Libreoffice-commits mailing list