]> OCCT Git - occt-copy.git/commitdiff
fix CR0002618: use Camera() instead of myCamera
authorisk <isk@opencascade.com>
Fri, 12 Feb 2016 06:45:20 +0000 (09:45 +0300)
committerduv <duv@opencascade.com>
Fri, 25 Mar 2016 09:44:57 +0000 (12:44 +0300)
src/V3d/V3d_View.cxx

index 7cd14eb844f010e7ac4199e97088c99e4966c196..26b0b727491643e0353f5844745c8ce28f6fbd1d 100644 (file)
@@ -2157,9 +2157,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();
 }
 
 //=======================================================================