mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-20 16:00:32 +05:00
PAL22862: GHS3D gives OCC exception
BUG: !more() if the 1st iterator !more()
This commit is contained in:
parent
795de88a52
commit
2f82761f83
@ -46,7 +46,10 @@ protected:
|
||||
typename CONTAINER_OF_ITERATORS::iterator _beg, _end;
|
||||
public:
|
||||
SMDS_IteratorOnIterators(const CONTAINER_OF_ITERATORS& iterators):
|
||||
_iterators( iterators ), _beg( _iterators.begin()), _end(_iterators.end() ) {}
|
||||
_iterators( iterators ), _beg( _iterators.begin()), _end(_iterators.end() )
|
||||
{
|
||||
while ( _beg != _end && !(*_beg)->more()) ++_beg;
|
||||
}
|
||||
|
||||
/// Return true iff there are other object in this iterator
|
||||
virtual bool more() { return _beg != _end && (*_beg)->more(); }
|
||||
|
Loading…
Reference in New Issue
Block a user