Kaydet (Commit) 48eccfb8 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

fdo#77537: Exporting font names in edit text needs special handling.

Change-Id: Ia9c29d37eaf962e0245920e50f534dd779af72dc
üst 90f7bd61
...@@ -1116,10 +1116,18 @@ const SvxFieldData* toXMLPropertyStates( ...@@ -1116,10 +1116,18 @@ const SvxFieldData* toXMLPropertyStates(
case EE_CHAR_FONTINFO_CJK: case EE_CHAR_FONTINFO_CJK:
case EE_CHAR_FONTINFO_CTL: case EE_CHAR_FONTINFO_CTL:
{ {
if (!static_cast<const SvxFontItem*>(p)->QueryValue(aAny, pEntry->mnFlag)) // Apparently font info needs special handling.
continue; const SvxFontItem* pItem = static_cast<const SvxFontItem*>(p);
rPropStates.push_back(XMLPropertyState(nIndex, aAny)); sal_Int32 nIndexFontName = xMapper->GetEntryIndex(XML_NAMESPACE_STYLE, "font-name", 0);
if (nIndexFontName == -1 || nIndexFontName >= nEntryCount)
break;
if (!pItem->QueryValue(aAny, MID_FONT_FAMILY_NAME))
break;
rPropStates.push_back(XMLPropertyState(nIndexFontName, aAny));
} }
break; break;
case EE_CHAR_WEIGHT: case EE_CHAR_WEIGHT:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment