#2428 fix a crash in TorrentTableView when drawing alternative rows

This commit is contained in:
Mitchell Livingston 2009-09-19 23:44:57 +00:00
parent 6805051b74
commit c7c102e39f
2 changed files with 2 additions and 2 deletions

View File

@ -680,7 +680,7 @@
const CGFloat totalRowHeight = [self rowHeight] + [self intercellSpacing].height;
NSRect gridRects[(NSInteger)(ceil(visibleRect.size.height / totalRowHeight / 2.0))];
NSRect gridRects[(NSInteger)(ceil(visibleRect.size.height / totalRowHeight / 2.0)) + 1]; //add one if partial rows at top and bottom
NSInteger rectNum = 0;
if (rows.length > 0)

View File

@ -46,7 +46,7 @@
const CGFloat totalRowHeight = [self rowHeight] + [self intercellSpacing].height;
NSRect gridRects[(NSInteger)(ceil(visibleRect.size.height / totalRowHeight / 2.0))];
NSRect gridRects[(NSInteger)(ceil(visibleRect.size.height / totalRowHeight / 2.0)) + 1]; //add one if partial rows at top and bottom
NSInteger rectNum = 0;
if (rows.length > 0)