diff options
author | Philipp Lohmann <pl@openoffice.org> | 2002-09-17 10:15:44 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2002-09-17 10:15:44 +0000 |
commit | d6e7184f7370b7cff7f4ffb05410eaf5c9bd9b30 (patch) | |
tree | 958162d3efae480abc675dc2c030da4a1d37b637 | |
parent | dcff0728fd959c19fded661ccd2d29704d1e9886 (diff) |
#103326# graphics state initialization, open flag in constructor
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 7 | ||||
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.hxx | 6 |
2 files changed, 8 insertions, 5 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index c60a71f30ebb..dab6921efd1a 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: pdfwriter_impl.cxx,v $ * - * $Revision: 1.23 $ + * $Revision: 1.24 $ * - * last change: $Author: pl $ $Date: 2002-09-12 16:59:36 $ + * last change: $Author: pl $ $Date: 2002-09-17 11:15:43 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -493,6 +493,7 @@ PDFWriterImpl::PDFWriterImpl( const OUString& rFilename, PDFWriter::PDFVersion e if( aError != osl_File_E_None ) return; + m_bOpen = true; // write header OStringBuffer aBuffer( 20 ); aBuffer.append( "%PDF-" ); @@ -508,9 +509,9 @@ PDFWriterImpl::PDFWriterImpl( const OUString& rFilename, PDFWriter::PDFVersion e if( !writeBuffer( aBuffer.getStr(), aBuffer.getLength() ) ) { osl_closeFile( m_aFile ); + m_bOpen = false; return; } - m_bOpen = true; } PDFWriterImpl::~PDFWriterImpl() diff --git a/vcl/source/gdi/pdfwriter_impl.hxx b/vcl/source/gdi/pdfwriter_impl.hxx index d5ee0397fdbb..0592ae35fcd6 100644 --- a/vcl/source/gdi/pdfwriter_impl.hxx +++ b/vcl/source/gdi/pdfwriter_impl.hxx @@ -2,9 +2,9 @@ * * $RCSfile: pdfwriter_impl.hxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: pl $ $Date: 2002-09-12 16:59:36 $ + * last change: $Author: pl $ $Date: 2002-09-17 11:15:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -319,7 +319,9 @@ private: m_aLineColor( COL_TRANSPARENT ), m_aFillColor( COL_TRANSPARENT ), m_aTextLineColor( COL_BLACK ), + m_nAntiAlias( 1 ), m_nLayoutMode( 0 ), + m_eTextAlign( ALIGN_BASELINE ), m_nTransparentPercent( 0 ) {} GraphicsState( const GraphicsState& rState ) : m_aFont( rState.m_aFont ), |