diff --git a/include/wx/gdiobj.h b/include/wx/gdiobj.h index fc2e0756d7..77b4c532f2 100644 --- a/include/wx/gdiobj.h +++ b/include/wx/gdiobj.h @@ -36,7 +36,7 @@ class WXDLLIMPEXP_CORE wxGDIObject : public wxObject { public: // checks if the object can be used - bool IsOk() const + virtual bool IsOk() const { // the cast here is safe because the derived classes always create // wxGDIRefData objects