diff options
Diffstat (limited to 'svtools/source/config/fontsubstconfig.cxx')
-rw-r--r-- | svtools/source/config/fontsubstconfig.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/svtools/source/config/fontsubstconfig.cxx b/svtools/source/config/fontsubstconfig.cxx index a9b42a6ffc52..7db21e021ba2 100644 --- a/svtools/source/config/fontsubstconfig.cxx +++ b/svtools/source/config/fontsubstconfig.cxx @@ -161,10 +161,7 @@ void SvtFontSubstConfig::Apply() OutputDevice::BeginFontSubstitution(); // remove old substitutions - sal_uInt16 nOldCount = OutputDevice::GetFontSubstituteCount(); - - while (nOldCount) - OutputDevice::RemoveFontSubstitute(--nOldCount); + OutputDevice::RemoveFontsSubstitute(); // read new substitutions sal_Int32 nCount = IsEnabled() ? SubstitutionCount() : 0; |