From 72008cb7f64658dcef5229ff5cb612abe67fb36d Mon Sep 17 00:00:00 2001 From: tetektoza Date: Tue, 2 Sep 2025 21:33:11 +0200 Subject: [PATCH] Gui: Initialize SbVec2s point directly in CommandView --- src/Gui/CommandView.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Gui/CommandView.cpp b/src/Gui/CommandView.cpp index 2e3d14e2ba..36b86e3eed 100644 --- a/src/Gui/CommandView.cpp +++ b/src/Gui/CommandView.cpp @@ -3999,9 +3999,8 @@ void StdCmdClarifySelection::activated(int iMsg) } QPoint local = widget->mapFromGlobal(pos); - SbVec2s point; - point[0] = local.x(); - point[1] = widget->height() - local.y() - 1; + SbVec2s point(static_cast(local.x()), + static_cast(widget->height() - local.y() - 1)); // Use ray picking to get all objects under cursor SoRayPickAction pickAction(viewer->getSoRenderManager()->getViewportRegion());