mirror of https://github.com/KLayout/klayout.git
Bugfix: array iterator must not iterate on empty search box.
This commit is contained in:
parent
01d7600b87
commit
09df614d8a
|
|
@ -964,9 +964,7 @@ struct iterated_array
|
|||
virtual std::pair <basic_array_iterator <Coord> *, bool>
|
||||
begin_touching (const box_type &b) const
|
||||
{
|
||||
if (b.empty ()) {
|
||||
return std::make_pair (new iterated_array_iterator <Coord> (m_v.begin (), m_v.end ()), false);
|
||||
} else if (! b.touches (m_box)) {
|
||||
if (b.empty () || ! b.touches (m_box)) {
|
||||
return std::make_pair (new iterated_array_iterator <Coord> (m_v.end (), m_v.end ()), false);
|
||||
} else {
|
||||
box_convert_type bc;
|
||||
|
|
|
|||
Loading…
Reference in New Issue