summaryrefslogtreecommitdiff
path: root/svtools/source/control/ctrlbox.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-28 19:40:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-28 22:18:55 +0200
commit56b2214c3aa40c2e2522eba5584063fb34e003ba (patch)
tree5668e4bd0836553a575e599ddfeadd072b4b0e8c /svtools/source/control/ctrlbox.cxx
parent9b2dce4518db89cadbd54a34d1f6375128c3c8a6 (diff)
drop use of SvtFontOptions
Change-Id: Ib3ef6ec415d5e61d484e338290030fac2ed7b215 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99647 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools/source/control/ctrlbox.cxx')
-rw-r--r--svtools/source/control/ctrlbox.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index 555d35a94aa0..f93ab22fc741 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -21,6 +21,7 @@
#include <comphelper/lok.hxx>
#include <i18nutil/unicode.hxx>
+#include <officecfg/Office/Common.hxx>
#include <tools/stream.hxx>
#include <vcl/builder.hxx>
#include <vcl/customweld.hxx>
@@ -36,7 +37,6 @@
#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
#include <unotools/charclass.hxx>
-#include <unotools/fontoptions.hxx>
#include <unotools/localedatawrapper.hxx>
#include <svtools/borderline.hxx>
@@ -390,8 +390,7 @@ void FontNameBox::LoadMRUEntries( const OUString& aFontMRUEntriesFile )
if (aFontMRUEntriesFile.isEmpty())
return;
- SvtFontOptions aFontOpt;
- if (!aFontOpt.IsFontHistoryEnabled())
+ if (!officecfg::Office::Common::Font::View::ShowFontBoxWYSIWYG::get())
return;
SvFileStream aStream( aFontMRUEntriesFile, StreamMode::READ );