Commit f5bc5500 authored by Janis Born's avatar Janis Born
Browse files

don't return invalid iterators for empty element ranges

parent 4c23effb
...@@ -109,9 +109,6 @@ class GenericIteratorT { ...@@ -109,9 +109,6 @@ class GenericIteratorT {
: mesh_(&_mesh), hnd_(_hnd), skip_bits_(0) : mesh_(&_mesh), hnd_(_hnd), skip_bits_(0)
{ {
if (_skip) enable_skipping(); if (_skip) enable_skipping();
// Set vertex handle invalid if the mesh contains no vertex
if((mesh_->*PrimitiveCountMember)() == 0) hnd_ = value_handle(-1);
} }
/// Standard dereferencing operator. /// Standard dereferencing operator.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment