Merge pull request #3163 from mapycz/fix-offsetting-test

unit test: fix offsetting test
This commit is contained in:
Dane Springmeyer 2015-11-07 12:42:08 -08:00
commit de1d1b902a

View file

@ -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));