Fix NSTableView rendering zero-sized rows

There's no reason to reallocate the row heights cache here.
This commit is contained in:
Sergey Bugaev 2018-12-17 00:22:44 +03:00
parent a924c352f5
commit 26a2c08c8b

View File

@ -386,9 +386,6 @@ static CGFloat rowHeightAtIndex(NSTableView *self, NSInteger index){
NSInteger i;
CGFloat height = 0.;
_rowHeightsCount=numberOfRows;
_rowHeights=realloc(_rowHeights,sizeof(CGFloat)*_rowHeightsCount);
for (i = 0; i < numberOfRows; i++) {
if (height + rowHeightAtIndex(self,i) + _intercellSpacing.height > rect.origin.y)
break;