]> git.saurik.com Git - wxWidgets.git/commitdiff
no real changes, just rewrote ChoiceEditor::EndEdit() in a slightly more concise...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 31 Aug 2004 22:13:56 +0000 (22:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 31 Aug 2004 22:13:56 +0000 (22:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index a07c8edb21e1d07da390ac3b09df35258f910a00..a90958f27d1a284ac347b7e4a165398f15795710 100644 (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()