Compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -483,7 +483,7 @@ void wxGridCellTextEditor::SetSize(const wxRect& rectOrig)
|
|||||||
#if defined(__WXGTK__)
|
#if defined(__WXGTK__)
|
||||||
rect.Inflate(rect.x ? 1 : 0, rect.y ? 1 : 0);
|
rect.Inflate(rect.x ? 1 : 0, rect.y ? 1 : 0);
|
||||||
#else // !GTK
|
#else // !GTK
|
||||||
int extra = row && col ? 2 : 1;
|
int extra = rect.x && rect.y ? 2 : 1;
|
||||||
#if defined(__WXMOTIF__)
|
#if defined(__WXMOTIF__)
|
||||||
extra *= 2;
|
extra *= 2;
|
||||||
#endif
|
#endif
|
||||||
@@ -618,7 +618,7 @@ void wxGridCellNumberEditor::Create(wxWindow* parent,
|
|||||||
wxGridCellTextEditor::Create(parent, id, evtHandler);
|
wxGridCellTextEditor::Create(parent, id, evtHandler);
|
||||||
|
|
||||||
#if wxUSE_VALIDATORS
|
#if wxUSE_VALIDATORS
|
||||||
Text()->SetValidator(new wxTextValidator(wxFILTER_NUMERIC));
|
Text()->SetValidator(wxTextValidator(wxFILTER_NUMERIC));
|
||||||
#endif // wxUSE_VALIDATORS
|
#endif // wxUSE_VALIDATORS
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -711,7 +711,7 @@ void wxGridCellFloatEditor::Create(wxWindow* parent,
|
|||||||
wxGridCellTextEditor::Create(parent, id, evtHandler);
|
wxGridCellTextEditor::Create(parent, id, evtHandler);
|
||||||
|
|
||||||
#if wxUSE_VALIDATORS
|
#if wxUSE_VALIDATORS
|
||||||
Text()->SetValidator(new wxTextValidator(wxFILTER_NUMERIC));
|
Text()->SetValidator(wxTextValidator(wxFILTER_NUMERIC));
|
||||||
#endif // wxUSE_VALIDATORS
|
#endif // wxUSE_VALIDATORS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user