From c2705c6fc228cb314fd13299dfce1639c8587398 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Mon, 21 Jul 2025 22:02:15 -0500 Subject: [PATCH] Gui: Fix multiplication result converted to larger type --- src/Gui/DAGView/DAGModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gui/DAGView/DAGModel.cpp b/src/Gui/DAGView/DAGModel.cpp index f27aa085b0..5e6e0be0b5 100644 --- a/src/Gui/DAGView/DAGModel.cpp +++ b/src/Gui/DAGView/DAGModel.cpp @@ -647,12 +647,12 @@ void Model::updateSlot() auto rectangle = (*theGraph)[currentVertex].rectangle.get(); rectangle->setRect(-rowPadding, 0.0, rowPadding, rowHeight); //calculate actual length later. - rectangle->setTransform(QTransform::fromTranslate(0, rowHeight * currentRow)); + rectangle->setTransform(QTransform::fromTranslate(0, rowHeight * static_cast(currentRow))); rectangle->setBackgroundBrush(backgroundBrushes[currentRow % backgroundBrushes.size()]); auto point = (*theGraph)[currentVertex].point.get(); point->setRect(0.0, 0.0, pointSize, pointSize); - point->setTransform(QTransform::fromTranslate(pointSpacing * currentColumn, + point->setTransform(QTransform::fromTranslate(pointSpacing * static_cast(currentColumn), rowHeight * currentRow + rowHeight / 2.0 - pointSize / 2.0)); point->setBrush(currentBrush);