From: abd Date: Mon, 27 Oct 2008 11:44:13 +0000 (+0000) Subject: fix compilation error on win32 platform X-Git-Tag: V5_1_0a3~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ce5429e48348f244ba3679358005a274fc72804c;p=modules%2Fvisu.git fix compilation error on win32 platform --- diff --git a/src/VISUGUI/VisuGUI_Sweep.cxx b/src/VISUGUI/VisuGUI_Sweep.cxx index aeebc324..38549b5d 100644 --- a/src/VISUGUI/VisuGUI_Sweep.cxx +++ b/src/VISUGUI/VisuGUI_Sweep.cxx @@ -362,7 +362,8 @@ void VisuGUI_Sweep::onSelectionChanged() //---------------------------------------------------------------------------- void VisuGUI_Sweep::onValueChanged( int value ) { - bool anIsValidSelection = ( myColoredPrs3d && myActor.GetPointer() ); + bool anIsValidSelection = ( myColoredPrs3d != NULL ) + && (myActor.GetPointer() != NULL ); if ( !anIsValidSelection ) return;