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:
Vadim Zeitlin
2004-08-31 22:13:56 +00:00
parent 01998c0f97
commit faffacecc4

View File

@@ -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()