From 309959077fef97eef33a89e979f81d3dcc71e853 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 15 Nov 2013 14:44:06 +0000 Subject: [PATCH] Regression of SALOME_TESTS/Grids/smesh/imps_08/I8 --- src/SMESHDS/SMESHDS_GroupOnFilter.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SMESHDS/SMESHDS_GroupOnFilter.cxx b/src/SMESHDS/SMESHDS_GroupOnFilter.cxx index e78385481..c0937ee4f 100644 --- a/src/SMESHDS/SMESHDS_GroupOnFilter.cxx +++ b/src/SMESHDS/SMESHDS_GroupOnFilter.cxx @@ -292,6 +292,9 @@ int SMESHDS_GroupOnFilter::getElementIds( void* ids, size_t idSize ) const { SMESHDS_GroupOnFilter* me = const_cast( this ); + if ( IsUpToDate() ) + me->setChanged(); + char* curID = (char*) ids; SMDS_ElemIteratorPtr elIt = GetElements(); if ( elIt->more() ) @@ -303,8 +306,6 @@ int SMESHDS_GroupOnFilter::getElementIds( void* ids, size_t idSize ) const } else { - me->setChanged(); - // find out nb of elements to skip w/o check before the 1st OK element const SMDS_MeshElement* firstOkElem = me->setNbElemToSkip( elIt );