#2428 fix a crash in TorrentTableView when drawing alternative rows
This commit is contained in:
parent
6805051b74
commit
c7c102e39f
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue