From b1989ee7fe00f3660debf2c9f3cd1275a2790ee8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 31 Oct 2014 13:19:46 +0000 Subject: [PATCH] Make Clear() virtual in wxItemContainer base class. This ensures that overridden wxComboBox::Clear() is called even when it's invoked via a pointer or a reference to wxItemContainer (and not just one to wxComboBox itself or its other base wxTextEntry). Closes #16654. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/ctrlsub.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/ctrlsub.h b/include/wx/ctrlsub.h index 61912feb68..118a212c70 100644 --- a/include/wx/ctrlsub.h +++ b/include/wx/ctrlsub.h @@ -286,7 +286,7 @@ public: // deleting items // -------------- - void Clear(); + virtual void Clear(); void Delete(unsigned int pos);