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());