summaryrefslogtreecommitdiff
path: root/sfx2/source/control
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2022-08-11 03:56:31 +1000
committerTomaž Vajngerl <quikee@gmail.com>2022-08-25 13:05:25 +0200
commit9481156090d0b455c6b35eaadd363f47c24b8086 (patch)
tree5aca78c0cdc95ef1f56c5e8b64ea0b02d98ebc97 /sfx2/source/control
parent9ca3c6794ca1969f453ddaa66c4e02ac8c695cc6 (diff)
vcl: rename GetNonMnemonicString() and make it standalone function
Renamed GetNonMnemonicString() to removeMnemonicFromString() Change-Id: I272714f97bb6d9174360631c18c4fd9bb485698e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138103 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'sfx2/source/control')
-rw-r--r--sfx2/source/control/thumbnailviewitem.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/control/thumbnailviewitem.cxx b/sfx2/source/control/thumbnailviewitem.cxx
index 9b75120289be..ca092bc18e1c 100644
--- a/sfx2/source/control/thumbnailviewitem.cxx
+++ b/sfx2/source/control/thumbnailviewitem.cxx
@@ -34,6 +34,7 @@
#include <drawinglayer/primitive2d/textprimitive2d.hxx>
#include <drawinglayer/processor2d/baseprocessor2d.hxx>
#include <vcl/graph.hxx>
+#include <vcl/mnemonic.hxx>
#include <vcl/outdev.hxx>
#include <vcl/texteng.hxx>
@@ -212,7 +213,7 @@ void ThumbnailViewItem::addTextPrimitives (const OUString& rText, const Thumbnai
aPos.setY(aPos.getY() + aTextDev.getTextHeight());
sal_Int32 nMnemonicPos = -1;
- OUString aOrigText(mrParent.isDrawMnemonic() ? OutputDevice::GetNonMnemonicString(rText, nMnemonicPos) : rText);
+ OUString aOrigText(mrParent.isDrawMnemonic() ? removeMnemonicFromString(rText, nMnemonicPos) : rText);
TextEngine aTextEngine;
aTextEngine.SetFont(getVclFontFromFontAttribute(pAttrs->aFontAttr,