Resolves: fdo#70725 calc export to pdf broken
Change-Id: Ibfe1d3a319fc82223f340ebd705a1966b8250089
This commit is contained in:
@@ -1705,7 +1705,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
|
|||||||
MetaTextArrayAction* pAct = (MetaTextArrayAction*)pAction;
|
MetaTextArrayAction* pAct = (MetaTextArrayAction*)pAction;
|
||||||
OString aText(OUStringToOString(pAct->GetText(),
|
OString aText(OUStringToOString(pAct->GetText(),
|
||||||
rActualCharSet));
|
rActualCharSet));
|
||||||
OUString aUniText = pAct->GetText().copy( pAct->GetIndex(), pAct->GetLen() );
|
OUString aUniText = pAct->GetText().copy( pAct->GetIndex(), std::min<sal_Int32>(pAct->GetText().getLength() - pAct->GetIndex(), pAct->GetLen()) );
|
||||||
sal_uLong nAryLen;
|
sal_uLong nAryLen;
|
||||||
sal_uLong nLen = pAct->GetLen();
|
sal_uLong nLen = pAct->GetLen();
|
||||||
const sal_uLong nTextLen = aText.getLength();
|
const sal_uLong nTextLen = aText.getLength();
|
||||||
|
@@ -842,7 +842,7 @@ void PDFWriterImpl::playMetafile( const GDIMetaFile& i_rMtf, vcl::PDFExtOutDevDa
|
|||||||
case( META_TEXT_ACTION ):
|
case( META_TEXT_ACTION ):
|
||||||
{
|
{
|
||||||
const MetaTextAction* pA = (const MetaTextAction*) pAction;
|
const MetaTextAction* pA = (const MetaTextAction*) pAction;
|
||||||
m_rOuterFace.DrawText( pA->GetPoint(), pA->GetText().copy( pA->GetIndex(), pA->GetLen() ) );
|
m_rOuterFace.DrawText( pA->GetPoint(), pA->GetText().copy( pA->GetIndex(), std::min<sal_Int32>(pA->GetText().getLength() - pA->GetIndex(), pA->GetLen()) ) );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user