no real changes, just rewrote ChoiceEditor::EndEdit() in a slightly more concise/clear way
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1461,12 +1461,12 @@ bool wxGridCellChoiceEditor::EndEdit(int row, int col,
|
||||
wxGrid* grid)
|
||||
{
|
||||
wxString value = Combo()->GetValue();
|
||||
bool changed = value != m_startValue;
|
||||
if ( value == m_startValue )
|
||||
return false;
|
||||
|
||||
if ( changed )
|
||||
grid->GetTable()->SetValue(row, col, value);
|
||||
grid->GetTable()->SetValue(row, col, value);
|
||||
|
||||
return changed;
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxGridCellChoiceEditor::Reset()
|
||||
|
Reference in New Issue
Block a user