ignore invalid bounding boxes from "geometry": null
This commit is contained in:
parent
1f693b8fa2
commit
a408a84fb0
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ struct push_box_impl
|
|||
template <typename T0, typename T1, typename T2, typename T3>
|
||||
void operator() (T0 & boxes, T1 const& begin, T2 const& box, T3 const& range) const
|
||||
{
|
||||
boxes.emplace_back(box, std::make_pair(std::distance(begin, range.begin()), std::distance(range.begin(), range.end())));
|
||||
if (box.valid()) boxes.emplace_back(box, std::make_pair(std::distance(begin, range.begin()), std::distance(range.begin(), range.end())));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue