[Libreoffice-commits] core.git: svx/source

Tomaž Vajngerl tomaz.vajngerl at collabora.co.uk
Mon May 25 04:01:37 PDT 2015


 svx/source/dialog/charmap.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 78e4b913d1bdcef83f66249fb5006803f28f96d1
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
Date:   Mon May 25 19:57:26 2015 +0900

    tdf#91582 initialize charmap when selecting in SvxShowCharSet
    
    Change-Id: I3f73eef349e65a1d2d283d1116729694c1f40ed9

diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx
index 104161d..c334d3f 100644
--- a/svx/source/dialog/charmap.cxx
+++ b/svx/source/dialog/charmap.cxx
@@ -647,6 +647,9 @@ void SvxShowCharSet::SelectIndex( int nNewIndex, bool bFocus )
 
 void SvxShowCharSet::SelectCharacter( sal_UCS4 cNew, bool bFocus )
 {
+    if (mpFontCharMap == nullptr)
+        RecalculateFont(*this);
+
     // get next available char of current font
     sal_UCS4 cNext = mpFontCharMap->GetNextChar( (cNew > 0) ? cNew - 1 : cNew );
 


More information about the Libreoffice-commits mailing list