Also fixed issue with hash value of LayerProperties

This commit is contained in:
Matthias Köfferlein 2018-09-07 22:39:12 +02:00
parent c53c3ae7cf
commit a4562bee71
1 changed files with 2 additions and 2 deletions

View File

@ -344,11 +344,11 @@ namespace std
size_t operator() (const db::LayerProperties &o) const
{
if (o.is_named ()) {
return hfunc (o.name.c_str ());
return hfunc (o.name);
} else {
size_t h = hfunc (o.layer);
h = hfunc (o.datatype, h);
h = hfunc (o.name.c_str (), h);
h = hfunc (o.name, h);
return h;
}
}