mirror of
https://github.com/leozide/leocad
synced 2024-12-27 21:58:37 +01:00
Fixed typo.
This commit is contained in:
parent
098ee45e5b
commit
660bb38bdd
1 changed files with 2 additions and 2 deletions
|
@ -832,8 +832,8 @@ void lcCamera::ZoomExtents(float AspectRatio, const lcVector3& Center, const std
|
|||
}
|
||||
|
||||
lcVector3 ViewCenter = lcMul30(Center, mWorldView);
|
||||
float Width = qMax(fabsf(MaxX - Center.x), fabsf(Center.x - MinX)) * 2;
|
||||
float Height = qMax(fabsf(MaxY - Center.y), fabsf(Center.y - MinY)) * 2;
|
||||
float Width = qMax(fabsf(MaxX - ViewCenter.x), fabsf(ViewCenter.x - MinX)) * 2;
|
||||
float Height = qMax(fabsf(MaxY - ViewCenter.y), fabsf(ViewCenter.y - MinY)) * 2;
|
||||
|
||||
if (Width > Height * AspectRatio)
|
||||
Height = Width / AspectRatio;
|
||||
|
|
Loading…
Reference in a new issue