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

David Tardon dtardon at redhat.com
Thu Jun 13 07:31:08 PDT 2013


 sw/source/ui/misc/docfnote.cxx |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit f6cf8c5d32c44a77ee245f580c6c8721eddd8618
Author: David Tardon <dtardon at redhat.com>
Date:   Thu Jun 13 16:29:55 2013 +0200

    i#10000 adapt to old String API
    
    Change-Id: I52375929e149feae8bc6df0bc0938c5f8055fe5a

diff --git a/sw/source/ui/misc/docfnote.cxx b/sw/source/ui/misc/docfnote.cxx
index 4ca616d..6cec8bf 100644
--- a/sw/source/ui/misc/docfnote.cxx
+++ b/sw/source/ui/misc/docfnote.cxx
@@ -376,8 +376,12 @@ sal_Bool SwEndNoteOptionPage::FillItemSet( SfxItemSet & )
 
     pInf->nFtnOffset = static_cast< sal_uInt16 >(m_pOffsetFld->GetValue() -1);
     pInf->aFmt.SetNumberingType(m_pNumViewBox->GetSelectedNumberingType() );
-    pInf->SetPrefix(m_pPrefixED->GetText().replaceAll("\\t", "\t"));
-    pInf->SetSuffix(m_pSuffixED->GetText().replaceAll("\\t", "\t"));
+    String aPrefix(m_pPrefixED->GetText());
+    aPrefix.SearchAndReplaceAllAscii("\\t", '\t');
+    pInf->SetPrefix(aPrefix);
+    String aSuffix(m_pSuffixED->GetText());
+    aSuffix.SearchAndReplaceAllAscii("\\t", '\t');
+    pInf->SetSuffix(aSuffix);
 
     pInf->SetCharFmt( lcl_GetCharFormat( pSh,
                         m_pFtnCharTextTemplBox->GetSelectEntry() ) );


More information about the Libreoffice-commits mailing list