corectly completed.
* Some tidying of end edit code paths. (such as in AutoSizeRowOrCol)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26726
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
else
{
// at the bottom of a column
else
{
// at the bottom of a column
- HideCellEditControl();
- SaveEditControlValue();
+ DisableCellEditControl();
else
{
// at left of grid
else
{
// at left of grid
- HideCellEditControl();
- SaveEditControlValue();
+ DisableCellEditControl();
else
{
// at right of grid
else
{
// at right of grid
- HideCellEditControl();
- SaveEditControlValue();
+ DisableCellEditControl();
if ( m_currentCellCoords != wxGridNoCellCoords )
{
if ( m_currentCellCoords != wxGridNoCellCoords )
{
DisableCellEditControl();
if ( IsVisible( m_currentCellCoords, FALSE ) )
DisableCellEditControl();
if ( IsVisible( m_currentCellCoords, FALSE ) )
{
wxClientDC dc(m_gridWin);
{
wxClientDC dc(m_gridWin);
+ //Cancel editting of cell
+ HideCellEditControl();
+ SaveEditControlValue();
+
// init both of them to avoid compiler warnings, even if weo nly need one
int row = -1,
col = -1;
// init both of them to avoid compiler warnings, even if weo nly need one
int row = -1,
col = -1;