diff options
author | Noel Grandin <noel@peralex.com> | 2013-07-30 15:38:52 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-07-31 13:36:52 +0200 |
commit | 93257759580e6df10cc9eddbf1800a17d61cfc48 (patch) | |
tree | e8006965e5db2f73c9032d2769b767cfa5eb0c61 /reportdesign | |
parent | c9bb2e3d2c39638eabd24656a9642fa56464700e (diff) |
convert vcl/mnemonic.hxx from XubString to OUString
Change-Id: I2df7a6b29aa30ad5ad936b524061aeaef837ca9d
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/ui/dlg/GroupsSorting.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/reportdesign/source/ui/dlg/GroupsSorting.cxx b/reportdesign/source/ui/dlg/GroupsSorting.cxx index 4db90b4ab878..4d4f9fd078f1 100644 --- a/reportdesign/source/ui/dlg/GroupsSorting.cxx +++ b/reportdesign/source/ui/dlg/GroupsSorting.cxx @@ -985,9 +985,10 @@ OGroupsSortingDialog::OGroupsSortingDialog( Window* _pParent { pControls[i]->Show(sal_True); String sText = pControls[i]->GetText(); - if ( aMnemonicGenerator.CreateMnemonic(sText) ) - pControls[i]->SetText(sText); - sal_Int32 nTextWidth = GetTextWidth(sText); + OUString sNewText = aMnemonicGenerator.CreateMnemonic(sText); + if ( sText != sNewText ) + pControls[i]->SetText(sNewText); + sal_Int32 nTextWidth = GetTextWidth(sNewText); nMaxTextWidth = ::std::max<sal_Int32>(nTextWidth,nMaxTextWidth); } |