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:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user