Our methods should arguably not be called at all in this case, but if this
does happen, at least don't crash.
Closes #15464.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74750
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
const wxArrayString
logicalLines = wxSplit(grid.GetCellValue(row, col), '\n', '\0');
+ // Trying to do anything if the column is hidden anyhow doesn't make sense
+ // and we run into problems in BreakLine() in this case.
+ if ( maxWidth <= 0 )
+ return logicalLines;
+
wxArrayString physicalLines;
for ( wxArrayString::const_iterator it = logicalLines.begin();
it != logicalLines.end();