Grid Control: Cells selecting fix.
If *editable* cells had been selected by holding and dragging the mouse's left button, the previous selection were not clearing.
This commit is contained in:
parent
19cf78f802
commit
e57c13c2bd
|
@ -63,6 +63,7 @@ bool GRID_TRICKS::toggleCell( int aRow, int aCol )
|
||||||
|
|
||||||
if( isCheckbox )
|
if( isCheckbox )
|
||||||
{
|
{
|
||||||
|
m_grid->ClearSelection();
|
||||||
m_grid->SetGridCursor( aRow, aCol );
|
m_grid->SetGridCursor( aRow, aCol );
|
||||||
|
|
||||||
wxGridTableBase* model = m_grid->GetTable();
|
wxGridTableBase* model = m_grid->GetTable();
|
||||||
|
@ -102,6 +103,8 @@ bool GRID_TRICKS::showEditor( int aRow, int aCol )
|
||||||
|
|
||||||
if( m_grid->IsEditable() && !m_grid->IsReadOnly( aRow, aCol ) )
|
if( m_grid->IsEditable() && !m_grid->IsReadOnly( aRow, aCol ) )
|
||||||
{
|
{
|
||||||
|
m_grid->ClearSelection();
|
||||||
|
|
||||||
if( m_grid->GetSelectionMode() == wxGrid::wxGridSelectRows )
|
if( m_grid->GetSelectionMode() == wxGrid::wxGridSelectRows )
|
||||||
{
|
{
|
||||||
wxArrayInt rows = m_grid->GetSelectedRows();
|
wxArrayInt rows = m_grid->GetSelectedRows();
|
||||||
|
|
Loading…
Reference in New Issue