diff --git a/src/Container/attributeContainer.cpp b/src/Container/attributeContainer.cpp index 19fecf88c1bb8c3a37bf28f10c931d884d17835b..e69439c799311df77f9f5c41b05885083f1cab2e 100644 --- a/src/Container/attributeContainer.cpp +++ b/src/Container/attributeContainer.cpp @@ -728,7 +728,7 @@ void AttributeContainer::copyFrom(const AttributeContainer& cont) { AttributeMultiVectorGen* ptr = cont.m_tableAttribs[i]->new_obj(); ptr->setName(cont.m_tableAttribs[i]->getName()); - ptr->setOrbit(cont.m_tableAttribs[i]->getIndex()); + ptr->setOrbit(cont.m_tableAttribs[i]->getOrbit()); ptr->setIndex(m_tableAttribs.size()); ptr->setNbBlocks(cont.m_tableAttribs[i]->getNbBlocks()); ptr->copy(cont.m_tableAttribs[i]); diff --git a/src/Topology/generic/genericmap.cpp b/src/Topology/generic/genericmap.cpp index 600b7e4547a19e3ab47407c38e5ba35acb1336d8..ce39aa44f35df61d8c850561b9b89dddabb1a1ab 100644 --- a/src/Topology/generic/genericmap.cpp +++ b/src/Topology/generic/genericmap.cpp @@ -288,7 +288,11 @@ void GenericMap::viewAttributesTables() std::vector listeNames ; cont.getAttributesNames(listeNames) ; for (std::vector::iterator it = listeNames.begin(); it != listeNames.end(); ++it) - std::cout << " " << *it << std::endl ; + { + unsigned int id = cont.getAttributeIndex(*it); + std::cout << " " << *it << " ("<