diff options
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index e64b0a59770c..20fdb89c9eaf 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -30,6 +30,7 @@ #include <comphelper/processfactory.hxx> #include <comphelper/string.hxx> #include <unotools/charclass.hxx> +#include <unotools/fontoptions.hxx> #include <svtools/sampletext.hxx> #include <svtools/svtresid.hxx> @@ -982,7 +983,11 @@ void FontNameBox::SaveMRUEntries( const OUString& aFontMRUEntriesFile ) const void FontNameBox::LoadMRUEntries( const OUString& aFontMRUEntriesFile ) { - if( aFontMRUEntriesFile.isEmpty() ) + if (aFontMRUEntriesFile.isEmpty()) + return; + + SvtFontOptions aFontOpt; + if (!aFontOpt.IsFontHistoryEnabled()) return; SvFileStream aStream( aFontMRUEntriesFile, StreamMode::READ ); |