Applied patch [ 800086 ] GridCellTextEditor wxTE_RICH misbehaving

Don't set the value of the hidden editor control (useless)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2004-01-11 14:28:38 +00:00
parent 1d6d8b5de0
commit 7b519e5e0c

View File

@ -668,7 +668,8 @@ bool wxGridCellTextEditor::EndEdit(int row, int col,
grid->GetTable()->SetValue(row, col, value);
m_startValue = wxEmptyString;
Text()->SetValue(m_startValue);
// No point in setting the text of the hidden control
//Text()->SetValue(m_startValue);
return changed;
}
@ -4240,9 +4241,9 @@ void wxGrid::CalcDimensions()
GetViewStart( &x, &y );
// ensure the position is valid for the new scroll ranges
if ( x >= w )
if ( x >= w )
x = wxMax( w - 1, 0 );
if ( y >= h )
if ( y >= h )
y = wxMax( h - 1, 0 );
// do set scrollbar parameters