]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/brush.h
Trying hard to make things compile.
[wxWidgets.git] / include / wx / msw / brush.h
index c51b948fedab39e33fc32e7b5d7c8556850761dc..0b82aed988663521ea146b211a440f8062a51350 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef _WX_BRUSH_H_
 #define _WX_BRUSH_H_
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma interface "brush.h"
 #endif
 
@@ -32,7 +32,7 @@ public:
     wxBrush();
     wxBrush(const wxColour& col, int style = wxSOLID);
     wxBrush(const wxBitmap& stipple);
-    wxBrush(const wxBrush& brush) { Ref(brush); }
+    wxBrush(const wxBrush& brush) : wxGDIObject(brush) { Ref(brush); }
     virtual ~wxBrush();
 
     virtual void SetColour(const wxColour& col);