From: YOANN AUDOUIN Date: Fri, 5 Feb 2021 09:21:35 +0000 (+0100) Subject: OCC-7.4-porting-for-CurveCreator_Widget X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=24fb7ae4928c97961419269e4f944208d25cfd68;p=modules%2Fgeom.git OCC-7.4-porting-for-CurveCreator_Widget --- diff --git a/src/CurveCreator/CurveCreator_Widget.cxx b/src/CurveCreator/CurveCreator_Widget.cxx index c2f409ed9..fa7a6b647 100644 --- a/src/CurveCreator/CurveCreator_Widget.cxx +++ b/src/CurveCreator/CurveCreator_Widget.cxx @@ -1186,12 +1186,16 @@ void CurveCreator_Widget::onMouseRelease( SUIT_ViewWindow* theWindow, QMouseEven filter->AddShape(exp.Current()); } aCtx->AddFilter(filter); +#if OCC_VERSION_LARGE <= 0x07030000 if (aCtx->HasOpenedContext()) { Handle(AIS_LocalContext) aLctx = aCtx->LocalContext(); aLctx->Filter()->Clear(); aLctx->AddFilter(filter); } +#else + // TODO: check if something required +#endif //} // Initialize the single selection if start and end points are equal,