Workaround for HideRowLabels() missing in wxWidgets 2.8. #770

This commit is contained in:
Alessandro Ranellucci 2013-03-11 20:00:12 +01:00
parent 999af84c54
commit a5e6340004

View File

@ -108,7 +108,7 @@ sub new {
$sizer->Add($grid, 1, wxEXPAND | wxALL, 10); $sizer->Add($grid, 1, wxEXPAND | wxALL, 10);
$grid->CreateGrid(0, 3); $grid->CreateGrid(0, 3);
$grid->DisableDragRowSize; $grid->DisableDragRowSize;
$grid->HideRowLabels; $grid->HideRowLabels if &Wx::wxVERSION_STRING !~ / 2\.8\./;
$grid->SetColLabelValue(0, "Min Z"); $grid->SetColLabelValue(0, "Min Z");
$grid->SetColLabelValue(1, "Max Z"); $grid->SetColLabelValue(1, "Max Z");
$grid->SetColLabelValue(2, "Layer height"); $grid->SetColLabelValue(2, "Layer height");