diff options
Diffstat (limited to 'vcl/source/gdi/pdfwriter_impl.cxx')
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index a56ea83d8910..0fd955af9765 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -5868,32 +5868,32 @@ bool PDFWriterImpl::emitCatalog() if( aInitPageRef.getLength() > 1 ) { aLine.append( "/OpenAction[" ); - aLine.append( aInitPageRef ); + aLine.append( aInitPageRef.makeStringAndClear() ); aLine.append( " /XYZ null null 0]\n" ); } break; case PDFWriter::FitInWindow : aLine.append( "/OpenAction[" ); - aLine.append( aInitPageRef ); + aLine.append( aInitPageRef.makeStringAndClear() ); aLine.append( " /Fit]\n" ); //Open fit page break; case PDFWriter::FitWidth : aLine.append( "/OpenAction[" ); - aLine.append( aInitPageRef ); + aLine.append( aInitPageRef.makeStringAndClear() ); aLine.append( " /FitH " ); aLine.append( m_nInheritedPageHeight );//Open fit width aLine.append( "]\n" ); break; case PDFWriter::FitVisible : aLine.append( "/OpenAction[" ); - aLine.append( aInitPageRef ); + aLine.append( aInitPageRef.makeStringAndClear() ); aLine.append( " /FitBH " ); aLine.append( m_nInheritedPageHeight );//Open fit visible aLine.append( "]\n" ); break; case PDFWriter::ActionZoom : aLine.append( "/OpenAction[" ); - aLine.append( aInitPageRef ); + aLine.append( aInitPageRef.makeStringAndClear() ); aLine.append( " /XYZ null null " ); if( m_aContext.Zoom >= 50 && m_aContext.Zoom <= 1600 ) aLine.append( (double)m_aContext.Zoom/100.0 ); @@ -6547,7 +6547,7 @@ bool PDFWriterImpl::emitTrailer() if( aDocChecksum.getLength() ) { aLine.append( "/DocChecksum /" ); - aLine.append( aDocChecksum ); + aLine.append( aDocChecksum.makeStringAndClear() ); aLine.append( "\n" ); } if( m_aAdditionalStreams.size() > 0 ) @@ -7254,7 +7254,8 @@ void PDFWriterImpl::drawHorizontalGlyphs( } aKernedLine.append( ">]TJ\n" ); aUnkernedLine.append( ">Tj\n" ); - rLine.append( bNeedKern ? aKernedLine : aUnkernedLine ); + rLine.append( + (bNeedKern ? aKernedLine : aUnkernedLine).makeStringAndClear() ); // set beginning of next run nBeginRun = aRunEnds[nRun]; |