]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/graphicc.cpp
check that the bitmap is valid before getting its size to avoid asserts
[wxWidgets.git] / src / generic / graphicc.cpp
index d901678cd5bf2265ae1587bad74ae9fe915d2066..96e77321fa45ca7582863647dd12330997c7cab6 100755 (executable)
@@ -3,9 +3,9 @@
 // Purpose:     cairo device context class
 // Author:      Stefan Csomor
 // Modified by:
-// Created:     01/02/97
+// Created:     2006-10-03
 // RCS-ID:      $Id$
-// Copyright:   (c) Stefan Csomor
+// Copyright:   (c) 2006 Stefan Csomor
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
@@ -13,9 +13,6 @@
 
 #include "wx/dc.h"
 
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
 #ifdef __BORLANDC__
 #pragma hdrstop
 #endif
@@ -37,6 +34,8 @@
 
 #include "wx/graphics.h"
 
+#if wxUSE_GRAPHICS_CONTEXT
+
 #include <vector>
 
 using namespace std;
@@ -865,4 +864,6 @@ void wxCairoContext::SetFont( const wxFont &font )
 wxGraphicsContext* wxGraphicsContext::Create( const wxWindowDC& dc )
 {
     return new wxCairoContext(dc);
-}
\ No newline at end of file
+}
+
+#endif  // wxUSE_GRAPHICS_CONTEXT