mirror of https://github.com/CGAL/cgal
Bugfix: creation of pmap should return false if pmap already exists
This commit is contained in:
parent
7f4044bb2e
commit
f80bbf517c
|
|
@ -276,7 +276,10 @@ public:
|
||||||
{
|
{
|
||||||
std::pair<Property_map<Key, T>, bool> out = get<T>(name, i);
|
std::pair<Property_map<Key, T>, bool> out = get<T>(name, i);
|
||||||
if (out.second)
|
if (out.second)
|
||||||
return out;
|
{
|
||||||
|
out.second = false;
|
||||||
|
return out;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// otherwise add the property
|
// otherwise add the property
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue