]> git.saurik.com Git - wxWidgets.git/commitdiff
better guarding when no printing architecture exists (patch from Joel Low)
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 31 Jul 2008 06:57:33 +0000 (06:57 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 31 Jul 2008 06:57:33 +0000 (06:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54869 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dcgraph.cpp
src/common/graphcmn.cpp

index 96516c4e5234baa3e89cb78affe88ac7c64546c3..42742a48b9f8bd1786b709a30d13dd438b0c8c21 100644 (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()
 {
index d3166c26ddfa9b759c23855a280b50e1afe263e4..49a2a879676dfc4880d8419a89a1ef59feba48f6 100644 (file)
@@ -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 )
 {