}
void wxGridCellDateTimeRenderer::SetParameters(const wxString& params){
- if(params)
+ if (!params.IsEmpty())
m_oformat=params;
}
wxGridCellEnumRenderer::wxGridCellEnumRenderer(const wxString& choices)
{
- if(choices)
+ if (!choices.IsEmpty())
SetParameters(choices);
}
wxGridCellEnumEditor::wxGridCellEnumEditor(const wxString& choices)
: wxGridCellChoiceEditor()
{
- if(choices)
+ if (!choices.IsEmpty())
SetParameters(choices);
}
wxDC& dc,
int row, int col)
{
- int x,y, height , width = grid.GetColSize(col) -10;
+ wxCoord x,y, height , width = grid.GetColSize(col) -10;
int count = 250; //Limit iterations..
wxRect rect(0,0,width,10);