From 813fdca24cc8a1f12252bca630e3de962f20b5e8 Mon Sep 17 00:00:00 2001 From: Xaviou Date: Sun, 25 Feb 2018 18:39:59 +0100 Subject: [PATCH] Fix Wrong method name in wxAddRemoveCtrl documentation Use the correct CanRemove() instead of the non-existent CanRename(). Closes https://github.com/wxWidgets/wxWidgets/pull/747 --- interface/wx/addremovectrl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/wx/addremovectrl.h b/interface/wx/addremovectrl.h index a2fcf6e3bb..67d37fb73c 100644 --- a/interface/wx/addremovectrl.h +++ b/interface/wx/addremovectrl.h @@ -121,7 +121,7 @@ public: virtual wxWindow* GetItemsCtrl() const { return m_lbox; } virtual bool CanAdd() const { return true; } - virtual bool CanRename() const { return m_lbox->GetSelection() != wxNOT_FOUND; } + virtual bool CanRemove() const { return m_lbox->GetSelection() != wxNOT_FOUND; } virtual void OnAdd() { ... get the new item from user and add it ... } virtual void OnRemove() { m_lbox->Delete(m_lbox->GetSelection()); }