From b1db1bc0bb3577b604ad7082eb0c2ffd8e93f5b3 Mon Sep 17 00:00:00 2001 From: Xaviou Date: Sun, 25 Feb 2018 18:39:59 +0100 Subject: [PATCH] Wrong method name in wxAddRemoveCtrl documentation sample code --- 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()); }