mirror of
https://github.com/transmission/transmission
synced 2024-12-23 16:24:02 +00:00
#2428 fix a crash in TorrentTableView when drawing alternative rows
This commit is contained in:
parent
6805051b74
commit
c7c102e39f
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue