1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +03:00

0024714: Camera integration - difference in behavior of V3d_View::SetSize

Restored behavior of SetSize method
This commit is contained in:
apl
2014-03-12 14:59:26 +04:00
committed by bugmaster
parent 34db9c0093
commit 3dfe95cdb9
5 changed files with 70 additions and 16 deletions

View File

@@ -1345,12 +1345,11 @@ void V3d_View::SetCenter (const Standard_Integer theXp,
//function : SetSize
//purpose :
//=============================================================================
void V3d_View::SetSize(const Standard_Real Size)
void V3d_View::SetSize (const Standard_Real theSize)
{
V3d_BadValue_Raise_if( Size <= 0.,
"V3d_View::SetSize, Window Size is NULL");
V3d_BadValue_Raise_if (theSize <= 0.0, "V3d_View::SetSize, Window Size is NULL");
myCamera->SetScale (Size);
myCamera->SetScale (myCamera->Aspect() >= 1.0 ? theSize / myCamera->Aspect() : theSize);
AutoZFit();