]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/graphcmn.cpp
wxDataViewChoiceRenderer's editor control should have the same size as the cell.
[wxWidgets.git] / src / common / graphcmn.cpp
index 0c24351e7e2b049f43a8a2b4e4cf476739fd64f1..5bc8a8824a60d945926ccaccb44428545ebd9dc1 100644 (file)
@@ -870,15 +870,16 @@ wxGraphicsBitmap wxGraphicsContext::CreateSubBitmap( const wxGraphicsBitmap &bmp
 {
     return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(dc);
 }
+#endif
 
 #ifdef __WXMSW__
+#if wxUSE_ENH_METAFILE
 /* static */ wxGraphicsContext* wxGraphicsContext::Create( const wxEnhMetaFileDC& dc)
 {
     return wxGraphicsRenderer::GetDefaultRenderer()->CreateContext(dc);
 }
 #endif
-
-#endif // wxUSE_PRINTING_ARCHITECTURE
+#endif
 
 wxGraphicsContext* wxGraphicsContext::CreateFromNative( void * context )
 {