Allow unsetting wxMenuItem as start of radio group too.

This must be called if another radio item is inserted before the current
starting one.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-07-16 14:10:35 +00:00
parent 924c9b4591
commit 150dcda942
2 changed files with 3 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ public:
void UpdateItemStatus() ; void UpdateItemStatus() ;
// mark item as belonging to the given radio group // mark item as belonging to the given radio group
void SetAsRadioGroupStart(); void SetAsRadioGroupStart(bool start = true);
void SetRadioGroupStart(int start); void SetRadioGroupStart(int start);
void SetRadioGroupEnd(int end); void SetRadioGroupEnd(int end);

View File

@@ -218,9 +218,9 @@ void wxMenuItem::UpdateItemText()
// radio group stuff // radio group stuff
// ----------------- // -----------------
void wxMenuItem::SetAsRadioGroupStart() void wxMenuItem::SetAsRadioGroupStart(bool start)
{ {
m_isRadioGroupStart = true; m_isRadioGroupStart = start;
} }
void wxMenuItem::SetRadioGroupStart(int start) void wxMenuItem::SetRadioGroupStart(int start)