mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
check if index is valid before pushing back value.
This commit is contained in:
parent
f53122ea04
commit
cad0261e55
@ -143,7 +143,8 @@ public:
|
||||
else
|
||||
{
|
||||
cont_type::size_type index = ctx_->push(key);
|
||||
data_.push_back(val);
|
||||
if (index == data_.size())
|
||||
data_.push_back(val);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user