| commit | c791834c73b2e37d05b6c99e43a6ed2047033e42 | [log] |
|---|---|---|
| author | Aron Budea <aron.budea@collabora.com> | Fri Jun 28 06:09:33 2024 +0200 |
| committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | Sun Jun 30 19:31:00 2024 +0200 |
| tree | ac3a4146b2ff7351b5ef08c4e0b4267e90174337 | |
| parent | 65e755ebeb17d16a84465ba92fe0f8f5ea1aebd9 [diff] |
tdf#161310 Translate My AutoText in Insert toolbar Use same pattern as 42e6e26255b21c1bfde893f5aaf23d4a37ecee91 and dffdc0b1995e2b24304ce0651ca886bbf9cf4f95 Change-Id: If36ecdcbb771bfcde9836203e84586045d039c8e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169693 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit 696eb4b4e55ce26cee9aee2c76a7125df91ae0d6) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169739 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
diff --git a/sw/source/uibase/ribbar/workctrl.cxx b/sw/source/uibase/ribbar/workctrl.cxx index 9a9b288..f40b9e9 100644 --- a/sw/source/uibase/ribbar/workctrl.cxx +++ b/sw/source/uibase/ribbar/workctrl.cxx
@@ -91,6 +91,8 @@ void SwTbxAutoTextCtrl::CreatePopupWindow() for(size_t i = 1; i <= nGroupCount; ++i) { OUString sTitle = pGlossaryList->GetGroupTitle(i - 1); if (sTitle == "My AutoText") sTitle = SwResId(STR_MY_AUTOTEXT); const sal_uInt16 nBlockCount = pGlossaryList->GetBlockCount(i -1); auto const [it, _] = titles.insert(sTitle); size_t const menuIndex(::std::distance(titles.begin(), it));