Revert code that got accidentally committed.

(This didn't fix the problem anyway; I had to fix it in our OSX
wxWidgets branch.)

Fixes: lp:1792196
* https://bugs.launchpad.net/kicad/+bug/1792196
This commit is contained in:
Jeff Young 2018-09-12 19:18:04 +01:00
parent c1c89d13ff
commit 23726116ee
1 changed files with 0 additions and 10 deletions

View File

@ -156,16 +156,6 @@ void GRID_TRICKS::onMouseUp( wxMouseEvent& aEvent )
// The second call corrects those (as yet undefined) "other times".
m_grid->EnableCellEditControl();
m_grid->ShowCellEditControl();
// Yet another wxWidgets hack: setting the control to readonly results in the
// selection not getting shown. Set it again in the hopes it will get rendered.
wxGridCellEditor* editor = m_grid->GetCellEditor( m_grid->GetCursorRow(), m_grid->GetCursorColumn() );
auto readonly = dynamic_cast<GRID_CELL_READONLY_TEXT_EDITOR*>( editor );
if( readonly )
{
readonly->GetControl()->Refresh();
}
editor->DecRef();
}
m_showEditorOnMouseUp = false;
}