]> OCCT Git - occt-copy.git/commitdiff
Fix V3d_View::Gravity().
authorisk <isk@opencascade.com>
Tue, 3 Nov 2015 04:45:08 +0000 (07:45 +0300)
committerisk <isk@opencascade.com>
Tue, 3 Nov 2015 04:45:08 +0000 (07:45 +0300)
src/V3d/V3d_View.cxx

index ff1ebb3732b41b330729606416083505a1a09771..cd740b43c0484a8b68d2016b97c826717817c9f4 100644 (file)
@@ -2163,9 +2163,9 @@ void V3d_View::Gravity (Standard_Real& theX,
                         Standard_Real& theY,
                         Standard_Real& theZ) const
 {
-  theX = myCamera->Center().X();
-  theY = myCamera->Center().Y();
-  theZ = myCamera->Center().Z();
+  theX = Camera()->Center().X();
+  theY = Camera()->Center().Y();
+  theZ = Camera()->Center().Z();
 }
 
 //=======================================================================