From 1d912c91dfead52a0141b9237d32ffd1f884cb40 Mon Sep 17 00:00:00 2001
From: James Turner <zakalawe@mac.com>
Date: Fri, 17 Jun 2016 22:42:33 +0100
Subject: [PATCH] Avoid overlap of ratings / progress bar

Part of issues mentioned in:

https://sourceforge.net/p/flightgear/codetickets/1865/
---
 src/GUI/AircraftItemDelegate.cxx | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/GUI/AircraftItemDelegate.cxx b/src/GUI/AircraftItemDelegate.cxx
index 6945645b1..dfa85ba54 100644
--- a/src/GUI/AircraftItemDelegate.cxx
+++ b/src/GUI/AircraftItemDelegate.cxx
@@ -268,11 +268,10 @@ QSize AircraftItemDelegate::sizeHint(const QStyleOptionViewItem & option, const
         // ratings
         int ratingHeight = qMax(24, smallMetrics.height() + MARGIN);
         textHeight += ratingHeight * 2;
-    } else {
-        // just the button height
-        textHeight += BUTTON_HEIGHT;
     }
 
+    textHeight += BUTTON_HEIGHT;
+
     textHeight = qMax(textHeight, thumbnailSize.height());
     return QSize(option.rect.width(), textHeight + (MARGIN * 2));
 }