]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #545: z layers regressions
authorasl <asl@opencascade.com>
Thu, 21 May 2015 05:16:45 +0000 (08:16 +0300)
committerasl <asl@opencascade.com>
Thu, 21 May 2015 05:16:45 +0000 (08:16 +0300)
src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx
src/HYDROGUI/HYDROGUI_ZLayers.cxx

index 1034b656a03825d95029a5a2e83d942c0e922239..40256a51b2e6b54640a4812ff8cd00e5e8df8d62 100644 (file)
@@ -371,7 +371,7 @@ void HYDROGUI_OCCDisplayer::SetZLayer( const OCCViewer_Viewer* theViewer,
                                        const Handle(HYDROData_Entity)& theObject, 
                                        const int theZLayerId )
 {
-  if ( !theViewer || ( theZLayerId < 0 ) ) {
+  if ( !theViewer /*|| ( theZLayerId < 0 )*/ ) {
     return;
   }
   
index edeb89d939025ccec2d6a3864a7a11f0a9184795..ac479434cafb04f231eb35d9a8c9053b4cedfd39 100644 (file)
@@ -39,7 +39,8 @@ void SetPrsZLayer( const Handle_PrsMgr_PresentableObject& thePresentableObject,
 
 void SetZLayerSettings( const Handle_V3d_Viewer& theViewer3d, int theLayerId, bool theIsOrdered )
 {
-  if ( theViewer3d.IsNull() || theLayerId < 0 ) {
+  if ( theViewer3d.IsNull() /*|| theLayerId < 0*/ )
+  {
     return;
   }