summaryrefslogtreecommitdiff
path: root/padmin
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-09-30 11:03:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-09-30 11:04:22 +0100
commit64b720dce8d3087ed62da815ecae1375b45149be (patch)
treef09933f2322c72ba3e30ea7ea1c9598fe7658eea /padmin
parentcfb09f556d7bc4d7341abf86c6e61af657235432 (diff)
Related: fdo#38838 remove UniString::SearchAscii
Change-Id: Icb7850aaabe59f96ea26a665a8d25617b2741d68
Diffstat (limited to 'padmin')
-rw-r--r--padmin/source/prtsetup.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/padmin/source/prtsetup.cxx b/padmin/source/prtsetup.cxx
index c82a2375c915..7e47ebcc694e 100644
--- a/padmin/source/prtsetup.cxx
+++ b/padmin/source/prtsetup.cxx
@@ -735,9 +735,10 @@ IMPL_LINK( RTSFontSubstPage, ClickBtnHdl, Button*, pButton )
{
for( int i = 0; i < m_aSubstitutionsBox.GetSelectEntryCount(); i++ )
{
- String aEntry( m_aSubstitutionsBox.GetSelectEntry( i ) );
- sal_uInt16 nPos = aEntry.SearchAscii( " -> " );
- aEntry.Erase( nPos );
+ OUString aEntry( m_aSubstitutionsBox.GetSelectEntry( i ) );
+ sal_Int32 nPos = aEntry.indexOf(" -> ");
+ if (nPos != -1)
+ aEntry = aEntry.copy(0, nPos);
m_pParent->m_aJobData.m_aFontSubstitutes.erase( aEntry );
}
update();