From b1179f14fa56c7a9f7c6bf69fa42124de581b3b7 Mon Sep 17 00:00:00 2001 From: godardma Date: Wed, 16 Oct 2024 13:26:20 +0200 Subject: [PATCH] [viewer] centered points drawing --- viewer/vibesgraphicsitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viewer/vibesgraphicsitem.cpp b/viewer/vibesgraphicsitem.cpp index 62d61eb..e5168e4 100644 --- a/viewer/vibesgraphicsitem.cpp +++ b/viewer/vibesgraphicsitem.cpp @@ -1752,7 +1752,7 @@ bool VibesGraphicsPoints::computeProjection(int dimX, int dimY) double r = radiusesExist ? radiuses[i].toDouble() : radius; // Draw with the new properties - QGraphicsEllipseItem * disk = new QGraphicsEllipseItem(0, 0, 2 * r, 2 * r); + QGraphicsEllipseItem * disk = new QGraphicsEllipseItem(-r, -r, 2 * r, 2 * r); disk->setPos(x, y); disk->setPen(pen);