summaryrefslogtreecommitdiffstats
path: root/sw/source/ui/config
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-07 10:12:16 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-07 11:46:58 +0100
commitb8cf30e93f18ddc16fd648976a41a6bbb6c6d8b2 (patch)
tree2f1aeba61b0b943fcd67d3f4b2ca73002eaf60dd /sw/source/ui/config
parentrestore original nPos increment (diff)
downloadcore-b8cf30e93f18ddc16fd648976a41a6bbb6c6d8b2.tar.gz
core-b8cf30e93f18ddc16fd648976a41a6bbb6c6d8b2.zip
Related: fdo#38838 remove UniString::SearchAndReplaceAscii
Change-Id: I86019d7ab248679cd8518a621fe8e3721b44aeb0
Diffstat (limited to 'sw/source/ui/config')
-rw-r--r--sw/source/ui/config/optpage.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx
index a92ea298b8c4..1e368ef8cdeb 100644
--- a/sw/source/ui/config/optpage.cxx
+++ b/sw/source/ui/config/optpage.cxx
@@ -752,14 +752,13 @@ void SwStdFontTabPage::Reset( const SfxItemSet& rSet)
if( SFX_ITEM_SET == rSet.GetItemState(nLangSlot, sal_False, &pLang))
eLanguage = ((const SvxLanguageItem*)pLang)->GetValue();
- String sTmp = pLabelFT->GetText();
- String sToReplace = sScriptWestern;
+ OUString sTmp = pLabelFT->GetText();
+ OUString sToReplace = sScriptWestern;
if(FONT_GROUP_CJK == nFontGroup )
sToReplace = sScriptAsian;
else if(FONT_GROUP_CTL == nFontGroup )
sToReplace = sScriptComplex;
- sTmp.SearchAndReplaceAscii("%1", sToReplace);
- pLabelFT->SetText(sTmp);
+ pLabelFT->SetText(sTmp.replaceFirst("%1", sToReplace));
const SfxPoolItem* pItem;