Skip to content
Snippets Groups Projects
Commit e80f90d6 authored by George Nachman's avatar George Nachman
Browse files

Do not draw if the datasource width is negative. Tries to work around a crash...

Do not draw if the datasource width is negative. Tries to work around a crash pending the root cause's discovery.
parent 604f138b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1077,6 +1077,10 @@ static const int kDragThreshold = 3;
}
 
- (void)drawRect:(NSRect)rect {
if (_dataSource.width <= 0) {
ITCriticalError(_dataSource.width < 0, @"Negative datasource width of %@", @(_dataSource.width));
return;
}
BOOL savedCursorVisible = _drawingHelper.cursorVisible;
 
// Try to use a saved grid if one is available. If it succeeds, that implies that the cursor was
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment