]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dcbufcmn.cpp
A slightly better compilation fix after PCH-less build breakage in r64126.
[wxWidgets.git] / src / common / dcbufcmn.cpp
index 1d339f8ba0592833c42c46df54a83b732bd47645..23055c2187b11ba3e11077cbbaef3b3196ead4ab 100644 (file)
@@ -118,7 +118,7 @@ void wxBufferedDC::UseBuffer(wxCoord w, wxCoord h)
 
     // now that the DC is valid we can inherit the attributes (fonts, colours,
     // layout direction, ...) from the original DC
-    if ( m_dc->IsOk() )
+    if ( m_dc && m_dc->IsOk() )
         CopyAttributes(*m_dc);
 }