]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/dc.cpp
correct idle tag type; remove unneeded includes
[wxWidgets.git] / src / mgl / dc.cpp
index c3026cb75e1c0a58735631d895aec6dc4e2c95c8..c10d8b692b667026c7cd7dd15ae00b36cbc93335 100644 (file)
 #ifndef WX_PRECOMP
     #include "wx/dc.h"
     #include "wx/dcmemory.h"
+    #include "wx/log.h"
 #endif
 
 #include "wx/fontutil.h"
 #include "wx/encinfo.h"
 #include "wx/fontmap.h"
 #include "wx/mgl/private.h"
-#include "wx/log.h"
 
 #include <string.h>
 #include <mgraph.hpp>
@@ -1122,7 +1122,7 @@ void wxDC::SetBackground(const wxBrush& brush)
 {
     wxCHECK_RET( Ok(), wxT("invalid dc") );
 
-    if (!m_backgroundBrush.Ok()) return;
+    if (!brush.Ok()) return;
 
     m_backgroundBrush = brush;
     wxColour &clr = m_backgroundBrush.GetColour();