drivesetup: Fix PVS 832

Fix 'parentRow' is assigned values twice successively.

Change-Id: I57a1dec60f651c49eb05f3038b62c49c29eb2ff0
Reviewed-on: https://review.haiku-os.org/763
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Murai Takashi
2018-12-12 22:07:19 +00:00
committed by waddlesplash
parent 9d9ca63110
commit 2e7e161dfb
+1 -2
View File
@@ -1417,7 +1417,7 @@ MainWindow::_UpdateWindowZoomLimits()
{ {
float maxHeight = 0; float maxHeight = 0;
int32 numColumns = fListView->CountColumns(); int32 numColumns = fListView->CountColumns();
BRow* parentRow = NULL; BRow* parentRow = fListView->RowAt(0, NULL);
BColumn* column = NULL; BColumn* column = NULL;
maxHeight += _ColumnListViewHeight(fListView, NULL); maxHeight += _ColumnListViewHeight(fListView, NULL);
@@ -1428,7 +1428,6 @@ MainWindow::_UpdateWindowZoomLimits()
maxWidth += column->Width(); maxWidth += column->Width();
} }
parentRow = fListView->RowAt(0, NULL);
maxHeight += B_H_SCROLL_BAR_HEIGHT; maxHeight += B_H_SCROLL_BAR_HEIGHT;
maxHeight += 1.5 * parentRow->Height(); // the label row maxHeight += 1.5 * parentRow->Height(); // the label row
maxHeight += fDiskView->Bounds().Height(); maxHeight += fDiskView->Bounds().Height();