Fix "wider column" width in the grid sample

The changes of the commit 393f5c8e2b (Use less arbitrary column/row
sizes in the grid sample, 2020-03-31) accidentally made this column
narrower than default instead of making it wider due to a typo in the
name of wxGrid method: it should be the default column size, not the
default column label size.
This commit is contained in:
Vadim Zeitlin
2020-06-30 01:39:50 +02:00
parent f845a8dc71
commit 73532c4d95

View File

@@ -534,7 +534,7 @@ GridFrame::GridFrame()
grid->SetRowAttr(5, attr); grid->SetRowAttr(5, attr);
grid->SetCellValue(2, 4, "a wider column"); grid->SetCellValue(2, 4, "a wider column");
grid->SetColSize(4, 3*grid->GetDefaultColLabelSize()/2); grid->SetColSize(4, 3*grid->GetDefaultColSize()/2);
grid->SetColMinimalWidth(4, grid->GetColSize(4)); grid->SetColMinimalWidth(4, grid->GetColSize(4));
grid->SetCellTextColour(5, 8, *wxGREEN); grid->SetCellTextColour(5, 8, *wxGREEN);