]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
fix compilation error on win32 platform
authorabd <abd@opencascade.com>
Mon, 27 Oct 2008 11:44:13 +0000 (11:44 +0000)
committerabd <abd@opencascade.com>
Mon, 27 Oct 2008 11:44:13 +0000 (11:44 +0000)
src/VISUGUI/VisuGUI_Sweep.cxx

index aeebc3248c5bf2b3d63d5bc254dd3f9e122283a0..38549b5df79173c60f330731b2ba7cd671782155 100644 (file)
@@ -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;