diff options
Diffstat (limited to 'sw/source/filter/ww8/writerwordglue.cxx')
-rw-r--r-- | sw/source/filter/ww8/writerwordglue.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/filter/ww8/writerwordglue.cxx b/sw/source/filter/ww8/writerwordglue.cxx index f731c5df0b77..8816e7b61bc8 100644 --- a/sw/source/filter/ww8/writerwordglue.cxx +++ b/sw/source/filter/ww8/writerwordglue.cxx @@ -458,10 +458,11 @@ namespace sw FontMapExport::FontMapExport(const String &rFamilyName) { - msPrimary = GetFontToken(rFamilyName, 0); + xub_StrLen nIndex = 0; + msPrimary = GetNextFontToken(rFamilyName, nIndex); msSecondary = myImplHelpers::FindBestMSSubstituteFont(msPrimary); - if (!msSecondary.Len()) - msSecondary = GetFontToken(rFamilyName, 1); + if (!msSecondary.Len() && nIndex != STRING_NOTFOUND) + msSecondary = GetNextFontToken(rFamilyName, nIndex); } bool ItemSort::operator()(sal_uInt16 nA, sal_uInt16 nB) const |