From 40738f9ad74cf1eaa5217adf7ffa1a19454f872e Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 12 Feb 2015 16:42:58 +0300 Subject: [PATCH] 0025824: Infinite presentations should be excluded when computing gravity center of the view scene --- src/V3d/V3d_View.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }