summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-11-21 20:55:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-11-22 10:24:18 +0000
commit5c74680a377f6f55b136b2ab406b1608a215f432 (patch)
treea43a4cd9c0c8178789e79b6f8fdc307305daa484
parentb8adb1e66085d39014ad26593097eb16a8fb59df (diff)
use MNEMONIC_CHAR define
Change-Id: I824bd1ad981e0b37e273a054e2a64cb500776180
-rw-r--r--vcl/source/window/window2.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index be8c8baf5056..c0d013d9c518 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -28,6 +28,7 @@
#include <vcl/layout.hxx>
#include <vcl/timer.hxx>
#include <vcl/metric.hxx>
+#include <vcl/mnemonic.hxx>
#include <vcl/virdev.hxx>
#include <vcl/window.hxx>
#include <vcl/scrbar.hxx>
@@ -1967,7 +1968,7 @@ namespace
if (aRet[nI] == '_')
{
if (aRet[nI+1] != '_')
- aRet[nI] = '~';
+ aRet[nI] = MNEMONIC_CHAR;
else
aRet.remove(nI, 1);
++nI;