From 2e7e161dfb15eb6c992ead784e11c03f7b700a06 Mon Sep 17 00:00:00 2001 From: Murai Takashi Date: Wed, 12 Dec 2018 06:09:33 +0900 Subject: [PATCH] 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 --- src/apps/drivesetup/MainWindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/apps/drivesetup/MainWindow.cpp b/src/apps/drivesetup/MainWindow.cpp index b1ca297d2c..165ac3007f 100644 --- a/src/apps/drivesetup/MainWindow.cpp +++ b/src/apps/drivesetup/MainWindow.cpp @@ -1417,7 +1417,7 @@ MainWindow::_UpdateWindowZoomLimits() { float maxHeight = 0; int32 numColumns = fListView->CountColumns(); - BRow* parentRow = NULL; + BRow* parentRow = fListView->RowAt(0, NULL); BColumn* column = NULL; maxHeight += _ColumnListViewHeight(fListView, NULL); @@ -1428,7 +1428,6 @@ MainWindow::_UpdateWindowZoomLimits() maxWidth += column->Width(); } - parentRow = fListView->RowAt(0, NULL); maxHeight += B_H_SCROLL_BAR_HEIGHT; maxHeight += 1.5 * parentRow->Height(); // the label row maxHeight += fDiskView->Bounds().Height();