From 23726116ee476d90c23fd747390c49642b87fc31 Mon Sep 17 00:00:00 2001
From: Jeff Young <jeff@rokeby.ie>
Date: Wed, 12 Sep 2018 19:18:04 +0100
Subject: [PATCH] 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
---
 common/grid_tricks.cpp | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/common/grid_tricks.cpp b/common/grid_tricks.cpp
index c690bfe43c..955670cb4e 100644
--- a/common/grid_tricks.cpp
+++ b/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;
     }