]> git.saurik.com Git - wxWidgets.git/commitdiff
compile fix for BC++
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 7 Oct 1999 15:54:58 +0000 (15:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 7 Oct 1999 15:54:58 +0000 (15:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/grid.cpp

index c69d2694306574469d6c2e58893905fb3bcfeeb2..2af40dc9c8632c2c7d6d9f4c553a1af2c9e51de1 100644 (file)
@@ -2048,7 +2048,10 @@ void wxGrid::SetEditControlValue( const wxString& value )
     if ( m_table )
     {
         wxString s;
-        s = ( value == wxEmptyString ? GetCellValue(m_currentCellCoords) : value );
+        if ( !value )
+            s = GetCellValue(m_currentCellCoords);
+        else
+            s = value;
 
         if ( IsTopEditControlEnabled() )
         {