Merge pull request #3163 from mapycz/fix-offsetting-test
unit test: fix offsetting test
This commit is contained in:
commit
de1d1b902a
1 changed files with 1 additions and 5 deletions
|
@ -29,11 +29,7 @@ struct fake_path
|
|||
template <typename Itr>
|
||||
fake_path(Itr itr, size_t sz, bool make_invalid = false) {
|
||||
size_t num_coords = sz >> 1;
|
||||
if (make_invalid)
|
||||
{
|
||||
num_coords++;
|
||||
}
|
||||
vertices_.reserve(num_coords);
|
||||
vertices_.reserve(num_coords + (make_invalid ? 1 : 0));
|
||||
if (make_invalid)
|
||||
{
|
||||
vertices_.push_back(std::make_tuple(0,0,mapnik::SEG_END));
|
||||
|
|
Loading…
Reference in a new issue