diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-07-16 16:04:11 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-07-17 11:01:57 +0200 |
commit | a09d357daf65e285323ff77653a6de3058fc44da (patch) | |
tree | 15ab51ffbbfc5a49add169ab2f1eab16e63e56cb /svx | |
parent | 62aae6918e33a2535462d1e7be2278a7f9745009 (diff) |
tdf#118681 make sure we're using the right font char map
Change-Id: I64265dac5d0d18b092d64ef656997d7177a425a4
Reviewed-on: https://gerrit.libreoffice.org/57505
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/charmap.cxx | 8 | ||||
-rw-r--r-- | svx/source/dialog/searchcharmap.cxx | 1 |
2 files changed, 6 insertions, 3 deletions
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx index 1d8d286d03cc..4dd8dec69cde 100644 --- a/svx/source/dialog/charmap.cxx +++ b/svx/source/dialog/charmap.cxx @@ -20,7 +20,6 @@ #include <vcl/svapp.hxx> #include <vcl/settings.hxx> #include <vcl/builderfactory.hxx> -#include <vcl/fontcharmap.hxx> #include <svtools/colorcfg.hxx> #include <rtl/textenc.h> @@ -845,12 +844,17 @@ svx::SvxShowCharSetItem* SvxShowCharSet::ImplGetItem( int _nPos ) return aFind->second.get(); } - sal_Int32 SvxShowCharSet::getMaxCharCount() const { return mxFontCharMap->GetCharCount(); } +FontCharMapRef SvxShowCharSet::GetFontCharMap() +{ + RecalculateFont(*mxVirDev); + return mxFontCharMap; +} + // TODO: should be moved into Font Attributes stuff // we let it mature here though because it is currently the only use diff --git a/svx/source/dialog/searchcharmap.cxx b/svx/source/dialog/searchcharmap.cxx index cf9faf363673..ba2a8a36eb56 100644 --- a/svx/source/dialog/searchcharmap.cxx +++ b/svx/source/dialog/searchcharmap.cxx @@ -20,7 +20,6 @@ #include <vcl/svapp.hxx> #include <vcl/settings.hxx> #include <vcl/builderfactory.hxx> -#include <vcl/fontcharmap.hxx> #include <svtools/colorcfg.hxx> #include <rtl/textenc.h> |