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:
@@ -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()
|
||||
{
|
||||
|
@@ -800,10 +800,12 @@ wxGraphicsBitmap wxGraphicsContext::CreateSubBitmap( const wxGraphicsBitmap &bmp
|
||||
return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(dc);
|
||||
}
|
||||
|
||||
#if wxUSE_PRINTING_ARCHITECTURE
|
||||
/* static */ wxGraphicsContext* wxGraphicsContext::Create( const wxPrinterDC& dc)
|
||||
{
|
||||
return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(dc);
|
||||
}
|
||||
#endif
|
||||
|
||||
wxGraphicsContext* wxGraphicsContext::CreateFromNative( void * context )
|
||||
{
|
||||
|
Reference in New Issue
Block a user