cui/source/tabpages/numpages.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 4888f6f3f59785d0e661b58060bd8458f866bf10
Author:     Neil Roberts <[email protected]>
AuthorDate: Sun Oct 26 16:26:47 2025 +0100
Commit:     Noel Grandin <[email protected]>
CommitDate: Mon Nov 3 17:16:51 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]>

diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx
index 6383a96b8f27..50079b307eaa 100644
--- a/cui/source/tabpages/numpages.cxx
+++ b/cui/source/tabpages/numpages.cxx
@@ -529,7 +529,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;
@@ -555,7 +555,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

Reply via email to