diff options
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/dialog.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index 272405ba5164..2f1bf0a4bd93 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -2277,11 +2277,11 @@ void SmSymDefineDialog::SetFont(const OUString &rFontName, const OUString &rStyl pSymbolDisplay->SetFont(aFI); // update subset listbox for new font's unicode subsets - FontCharMap aFontCharMap; - pCharsetDisplay->GetFontCharMap( aFontCharMap ); + FontCharMapPtr pFontCharMap; + pCharsetDisplay->GetFontCharMap( pFontCharMap ); if (pSubsetMap) delete pSubsetMap; - pSubsetMap = new SubsetMap( &aFontCharMap ); + pSubsetMap = new SubsetMap( pFontCharMap ); pFontsSubsetLB->Clear(); bool bFirst = true; @@ -2298,6 +2298,8 @@ void SmSymDefineDialog::SetFont(const OUString &rFontName, const OUString &rStyl if( bFirst ) pFontsSubsetLB->SetNoSelection(); pFontsSubsetLB->Enable( !bFirst ); + + pFontCharMap = 0; } |