]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grideditors.cpp
Don't use GetThreadId() in wxMSW code.
[wxWidgets.git] / src / generic / grideditors.cpp
index 939552b1803d0e2d4647b9ed28e67ce4122eb3e8..cadc963e9e3fbc053d3354d065e286475ca78233 100644 (file)
@@ -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();