From: Stefan Neis Date: Tue, 22 Feb 2000 17:25:06 +0000 (+0000) Subject: Compilation fixes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/85bc0351f76f6d3f00460a167fc108b900e0725c Compilation fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index dd06aeda0b..777c2b46b3 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -483,7 +483,7 @@ void wxGridCellTextEditor::SetSize(const wxRect& rectOrig) #if defined(__WXGTK__) rect.Inflate(rect.x ? 1 : 0, rect.y ? 1 : 0); #else // !GTK - int extra = row && col ? 2 : 1; + int extra = rect.x && rect.y ? 2 : 1; #if defined(__WXMOTIF__) extra *= 2; #endif @@ -618,7 +618,7 @@ void wxGridCellNumberEditor::Create(wxWindow* parent, wxGridCellTextEditor::Create(parent, id, evtHandler); #if wxUSE_VALIDATORS - Text()->SetValidator(new wxTextValidator(wxFILTER_NUMERIC)); + Text()->SetValidator(wxTextValidator(wxFILTER_NUMERIC)); #endif // wxUSE_VALIDATORS } } @@ -711,7 +711,7 @@ void wxGridCellFloatEditor::Create(wxWindow* parent, wxGridCellTextEditor::Create(parent, id, evtHandler); #if wxUSE_VALIDATORS - Text()->SetValidator(new wxTextValidator(wxFILTER_NUMERIC)); + Text()->SetValidator(wxTextValidator(wxFILTER_NUMERIC)); #endif // wxUSE_VALIDATORS }