From d41e7dd1f63fbda7b6a42a2d7af2b67f9fc812ea Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Wed, 4 Aug 2021 13:36:28 +0100 Subject: [PATCH] Logical and is '&&' not 'and' .. annoyingly gcc allows this which is why I keep making this silly mistake. --- src/Charts/OverviewItems.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Charts/OverviewItems.cpp b/src/Charts/OverviewItems.cpp index 545897689..c802669fa 100644 --- a/src/Charts/OverviewItems.cpp +++ b/src/Charts/OverviewItems.cpp @@ -2427,7 +2427,7 @@ DataOverviewItem::itemPaint(QPainter *painter, const QStyleOptionGraphicsItem *, QRectF paintarea = QRectF(20,ROWHEIGHT*2, geometry().width()-40, geometry().height()-20-(ROWHEIGHT*2)); // paint the hover background - if (underMouse() and files.count()) { + if (underMouse() && files.count()) { QRectF dataarea = paintarea; dataarea.setY(dataarea.y() + (lineheight*2) + (lineheight*0.25f)); // 0.2 is the line spacing