Commit 43cee9c3 authored by ElenaSubbotina's avatar ElenaSubbotina

RtfFormatWriter - fix locale hyperlink

parent ba281922
......@@ -197,7 +197,7 @@ bool OOXParagraphReader::Parse2( ReaderParameter oParam , RtfParagraph& oOutputP
oCurField->m_oResult = TextItemContainerPtr( new TextItemContainer() );
//добавляем insert
RtfCharPtr oNewChar( new RtfChar() );
oNewChar->m_bRtfEncode = false;
oNewChar->m_bRtfEncode = true;// false;
CString sFieldText;
sFieldText += _T("HYPERLINK \"") + sTarget + _T("\"");
oNewChar->setText( sFieldText );
......
......@@ -207,7 +207,7 @@ public: CString RenderToRtf(RenderParameter oRenderParameter)
}
sResult += _T("{\\*\\fldinst ");
RenderParameter oNewParam = oRenderParameter;
oNewParam.nType = RENDER_TO_RTF_PARAM_CHAR;
oNewParam.nType = RENDER_TO_RTF_PARAM_PLAIN;//RENDER_TO_RTF_PARAM_CHAR;
oNewParam.nValue = RENDER_TO_RTF_PARAM_NO_PAR;
sResult += m_oInsert->RenderToRtf( oNewParam );
......
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