X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ccc040255c07064f2ed96f1a345d21860b202cb6..f155075229d771430f0793700f5048ad4be00e9d:/src/generic/grideditors.cpp?ds=inline diff --git a/src/generic/grideditors.cpp b/src/generic/grideditors.cpp index 939552b180..cadc963e9e 100644 --- a/src/generic/grideditors.cpp +++ b/src/generic/grideditors.cpp @@ -399,9 +399,11 @@ void wxGridCellTextEditor::DoCreate(wxWindow* parent, // show it again for a different cell. style |= wxTE_PROCESS_ENTER | wxTE_PROCESS_TAB | wxNO_BORDER | wxTE_RICH2; - m_control = new wxTextCtrl(parent, id, wxEmptyString, - wxDefaultPosition, wxDefaultSize, - style); + wxTextCtrl* const text = new wxTextCtrl(parent, id, wxEmptyString, + wxDefaultPosition, wxDefaultSize, + style); + text->SetMargins(0, 0); + m_control = text; #ifdef __WXOSX__ wxWidgetImpl* impl = m_control->GetPeer();