0024728: A lot of tests are crashed on vdump command on Windows in debug mode
[occt.git] / src / V3d / V3d_View.cxx
index 1bf93d0..9215239 100644 (file)
@@ -3135,7 +3135,7 @@ Standard_Boolean V3d_View::ToPixMap (Image_PixMap&               theImage,
 
   if (theToKeepAspect)
   {
-    myCamera->SetAspect ((Standard_Real) aFBOVPSizeX / aFBOSizeYMax);
+    myCamera->SetAspect ((Standard_Real) aFBOVPSizeX / aFBOVPSizeY);
   }
 
   //workaround for rendering list of Over and Under Layers