diff --git a/src/V3d/V3d_View.cxx b/src/V3d/V3d_View.cxx index d261682333..fb7e4578e7 100644 --- a/src/V3d/V3d_View.cxx +++ b/src/V3d/V3d_View.cxx @@ -2129,7 +2129,7 @@ void V3d_View::Gravity (Standard_Real& theX, } Bnd_Box aBox = aStruct->MinMaxValues(); - if (aBox.IsVoid()) + if (aBox.IsVoid() || aStruct->IsInfinite()) { continue; } @@ -2170,7 +2170,7 @@ void V3d_View::Gravity (Standard_Real& theX, } Bnd_Box aBox = aStruct->MinMaxValues(); - if (aBox.IsVoid()) + if (aBox.IsVoid() || aStruct->IsInfinite()) { continue; }