Salome HOME
Porting to OCCT 7.4 dev
[modules/geom.git] / src / CurveCreator / CurveCreator_Widget.cxx
index 34fa0a02112f6eb43a90f77f1438da244a10744a..f18329ef5781e321d502b9957f5504be9abe2718 100644 (file)
@@ -17,6 +17,8 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
+#include <Basics_OCCTVersion.hxx>
+
 #include "CurveCreator_Widget.h"
 #include "CurveCreator_TreeView.h"
 #include "CurveCreator_NewSectionDlg.h"
@@ -1520,7 +1522,11 @@ void CurveCreator_Widget::setSelectedPoints( const CurveCreator_ICurve::SectionT
   if ( myDragStarted )
     return;
   Handle(AIS_InteractiveContext) aContext = getAISContext();
-  if ( aContext.IsNull() || !aContext->HasOpenedContext() )
+  if ( aContext.IsNull() 
+#if OCC_VERSION_LARGE <= 0x07030000
+       || !aContext->HasOpenedContext() 
+#endif       
+     )
     return;
 
   CurveCreator_Utils::setSelectedPoints( aContext, myCurve, thePoints );