OCC 7.4 porting for CurveCreator_Widget: TODO check OK

This commit is contained in:
Paul RASCLE 2020-06-24 15:01:12 +02:00 committed by YOANN AUDOUIN
parent 4da74bc198
commit 1e56c0d59c

View File

@ -1182,12 +1182,16 @@ void CurveCreator_Widget::onMouseRelease( SUIT_ViewWindow* theWindow, QMouseEven
filter->AddShape(exp.Current()); filter->AddShape(exp.Current());
} }
aCtx->AddFilter(filter); aCtx->AddFilter(filter);
#if OCC_VERSION_LARGE <= 0x07030000
if (aCtx->HasOpenedContext()) if (aCtx->HasOpenedContext())
{ {
Handle(AIS_LocalContext) aLctx = aCtx->LocalContext(); Handle(AIS_LocalContext) aLctx = aCtx->LocalContext();
aLctx->Filter()->Clear(); aLctx->Filter()->Clear();
aLctx->AddFilter(filter); aLctx->AddFilter(filter);
} }
#else
// TODO: check if something required
#endif
//} //}
// Initialize the single selection if start and end points are equal, // Initialize the single selection if start and end points are equal,