cui/source/tabpages/numpages.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 6f37e13706f5b0239862255929299d463fb1050b Author: Neil Roberts <[email protected]> AuthorDate: Sun Oct 26 16:26:47 2025 +0100 Commit: Adolfo Jayme Barrientos <[email protected]> CommitDate: Mon Nov 3 19:03:27 2025 +0100 tdf#166488 Fix local variable used to store char from SvxCharacterMap The SvxCharacterMap dialog is used to select a character and returns a 32-bit Unicode codepoint via GetChar. When invoked from SvxBulletPickTabPage this was then being stored in a sal_Unicode variable so it would get truncated to 16-bit. This patch just fixes it to store the result in a sal_UCS4. Change-Id: I49984817388dc8d77284f18c085804bed049d740 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193353 Tested-by: Jenkins Reviewed-by: Noel Grandin <[email protected]> (cherry picked from commit 4888f6f3f59785d0e661b58060bd8458f866bf10) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193365 Reviewed-by: Adolfo Jayme Barrientos <[email protected]> diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx index fb07ffa14652..25c62d366d3a 100644 --- a/cui/source/tabpages/numpages.cxx +++ b/cui/source/tabpages/numpages.cxx @@ -505,7 +505,7 @@ IMPL_LINK_NOARG(SvxBulletPickTabPage, ClickAddChangeHdl_Impl, weld::Button&, voi if (aMap.run() != RET_OK) return; - sal_Unicode cChar = aMap.GetChar(); + sal_UCS4 cChar = aMap.GetChar(); vcl::Font aActBulletFont = aMap.GetCharFont(); sal_uInt16 _nMask = 1; @@ -531,7 +531,7 @@ IMPL_LINK_NOARG(SvxBulletPickTabPage, ClickAddChangeHdl_Impl, weld::Button&, voi { if (i == nIndex) { - aBulletSymbolsListRange[i] = OUStringChar(cChar); + aBulletSymbolsListRange[i] = OUString(&cChar, 1); aBulletSymbolsFontsListRange[i] = aActBulletFont.GetFamilyName(); } else
