mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-06 09:17:42 +02:00
Bugfix: array iterator must not iterate on empty search box.
This commit is contained in:
+1
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user