Browse Source

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
pull/13/head
Jeff Young 7 years ago
parent
commit
23726116ee
  1. 10
      common/grid_tricks.cpp

10
common/grid_tricks.cpp

@ -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;
}

Loading…
Cancel
Save