Skip to content

Commit 034d3d7

Browse files
authored
[GUI.Common] Fix crash when selecting a MechanicalObject<Rigid> (#5699)
fix crash when selecting
1 parent 366f324 commit 034d3d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sofa/GUI/Common/src/sofa/gui/common/BaseViewer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ void BaseViewer::drawSelection(sofa::core::visual::VisualParams* vparams)
287287
return;
288288

289289
drawTool->setPolygonMode(0, false);
290-
float screenHeight = vparams->viewport()[4];
290+
float screenHeight = vparams->viewport()[3];
291291

292292
for(auto current : currentSelection)
293293
{

0 commit comments

Comments
 (0)