vcl/qt5/Qt5Menu.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit ee53d07ae17747cb81340c05983b1937bd23c136 Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Sat Dec 8 03:35:09 2018 +0100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Sat Dec 8 11:49:28 2018 +0100 tdf#121974 Convert Qt menu text as needed Just as is already done in 'Qt5Menu::InsertMenuItem', the text needs to be converted in 'Qt5Menu::SetItemText' as well. Change-Id: I03c8f2e6fe0e926a3f7e4be5b7eac70f1bd9850f Reviewed-on: https://gerrit.libreoffice.org/64796 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/vcl/qt5/Qt5Menu.cxx b/vcl/qt5/Qt5Menu.cxx index acb8f957fcf6..130d7c583f58 100644 --- a/vcl/qt5/Qt5Menu.cxx +++ b/vcl/qt5/Qt5Menu.cxx @@ -287,7 +287,11 @@ void Qt5Menu::SetItemText(unsigned, SalMenuItem* pItem, const OUString& rText) Qt5MenuItem* pSalMenuItem = static_cast<Qt5MenuItem*>(pItem); QAction* pAction = pSalMenuItem->getAction(); if (pAction) - pAction->setText(toQString(rText)); + { + OUString aText(rText); + NativeItemText(aText); + pAction->setText(toQString(aText)); + } } void Qt5Menu::SetItemImage(unsigned, SalMenuItem* pItem, const Image& rImage) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits