better guarding when no printing architecture exists (patch from Joel Low)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2008-07-31 06:57:33 +00:00
parent 220d37c864
commit 6d0d845548
2 changed files with 6 additions and 0 deletions

View File

@@ -69,10 +69,12 @@ wxGCDC::wxGCDC( const wxMemoryDC& dc) :
{
}
#if wxUSE_PRINTING_ARCHITECTURE
wxGCDC::wxGCDC( const wxPrinterDC& dc) :
wxDC( new wxGCDCImpl( this, dc ) )
{
}
#endif
wxGCDC::wxGCDC() :
wxDC( new wxGCDCImpl( this ) )
@@ -136,12 +138,14 @@ wxGCDCImpl::wxGCDCImpl( wxDC *owner, const wxMemoryDC& dc ) :
SetGraphicsContext( wxGraphicsContext::Create(dc) );
}
#if wxUSE_PRINTING_ARCHITECTURE
wxGCDCImpl::wxGCDCImpl( wxDC *owner, const wxPrinterDC& dc ) :
wxDCImpl( owner )
{
Init();
SetGraphicsContext( wxGraphicsContext::Create(dc) );
}
#endif
void wxGCDCImpl::Init()
{