sfx2/source/commandpopup/CommandPopup.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 72d6287c586a2481c62bf21d88bb363ce584b8dd Author: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> AuthorDate: Sun Oct 8 22:34:15 2023 +0300 Commit: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> CommitDate: Mon Oct 9 17:47:34 2023 +0200 tdf#142524 Search Commands: use ▸ to indicate sequence Change-Id: I2a3a7c4db03dbfe53f2b71de7ee9b3df42a22866 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157689 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> diff --git a/sfx2/source/commandpopup/CommandPopup.cxx b/sfx2/source/commandpopup/CommandPopup.cxx index 8d68bd62bd76..0d948a4e84e6 100644 --- a/sfx2/source/commandpopup/CommandPopup.cxx +++ b/sfx2/source/commandpopup/CommandPopup.cxx @@ -51,6 +51,7 @@ MenuContentHandler::MenuContentHandler(uno::Reference<frame::XFrame> const& xFra void MenuContentHandler::gatherMenuContent( uno::Reference<container::XIndexAccess> const& xIndexAccess, MenuContent& rMenuContent) { + std::u16string_view aMenuLabelSeparator = AllSettings::GetLayoutRTL() ? u" ◂ " : u" ▸ "; for (sal_Int32 n = 0; n < xIndexAccess->getCount(); n++) { MenuContent aNewContent; @@ -85,7 +86,8 @@ void MenuContentHandler::gatherMenuContent( aNewContent.m_aMenuLabel = aLabel; if (!rMenuContent.m_aFullLabelWithPath.isEmpty()) - aNewContent.m_aFullLabelWithPath = rMenuContent.m_aFullLabelWithPath + " / "; + aNewContent.m_aFullLabelWithPath + = rMenuContent.m_aFullLabelWithPath + aMenuLabelSeparator; aNewContent.m_aFullLabelWithPath += aNewContent.m_aMenuLabel; aNewContent.m_aSearchableMenuLabel = toLower(aNewContent.m_aFullLabelWithPath);