From: asl Date: Thu, 21 May 2015 05:16:45 +0000 (+0300) Subject: refs #545: z layers regressions X-Git-Tag: v1.4.1~24 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b276466832288f63724d034a52dd07b63396f008;p=modules%2Fhydro.git refs #545: z layers regressions --- diff --git a/src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx b/src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx index 1034b656..40256a51 100644 --- a/src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx +++ b/src/HYDROGUI/HYDROGUI_OCCDisplayer.cxx @@ -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; } diff --git a/src/HYDROGUI/HYDROGUI_ZLayers.cxx b/src/HYDROGUI/HYDROGUI_ZLayers.cxx index edeb89d9..ac479434 100644 --- a/src/HYDROGUI/HYDROGUI_ZLayers.cxx +++ b/src/HYDROGUI/HYDROGUI_ZLayers.cxx @@ -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; }