From 4decd6afa5dab2dcb235778554028aac05e3b256 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 18 Feb 2008 23:58:09 +0000 Subject: [PATCH] make IsOk() virtual to allow it to be overridden in e.g. wxEnhMetaFile (replaces patch 1896222) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/gdiobj.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.2