From: nds Date: Tue, 2 Dec 2014 16:45:57 +0000 (+0300) Subject: This is an improvement to use one AND filter in the viewer context. It serves to... X-Git-Tag: V_0.6.0^2~35^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=32e205a228d74cdc2627143cb32360e9a557d7dc;p=modules%2Fshaper.git This is an improvement to use one AND filter in the viewer context. It serves to combine the document and the plane filters inside. The performance correction. The previous filters should be removed from the global context otherwise a list of filters is quickly extended. Test case is a lines creation by clicks in the viewer. --- diff --git a/src/XGUI/XGUI_Displayer.cpp b/src/XGUI/XGUI_Displayer.cpp index 8347d607a..adfe3aad8 100644 --- a/src/XGUI/XGUI_Displayer.cpp +++ b/src/XGUI/XGUI_Displayer.cpp @@ -332,6 +332,9 @@ void XGUI_Displayer::openLocalContext() // a list of filters in the global context is not cleared and should be cleared here SelectMgr_ListOfFilter aFilters; aFilters.Assign(aContext->Filters()); + // it is important to remove the filters in the global context, because there is a code + // in the closeLocalContex, which restore the global context filters + aContext->RemoveFilters(); //aContext->ClearCurrents(); aContext->OpenLocalContext();