Commit 1dad1ea8 authored by Sylvain Thery's avatar Sylvain Thery

debug minor pb in copyFrom(): tested OK

parent 70500ef4
......@@ -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]);
......
......@@ -288,7 +288,11 @@ void GenericMap::viewAttributesTables()
std::vector<std::string> listeNames ;
cont.getAttributesNames(listeNames) ;
for (std::vector<std::string>::iterator it = listeNames.begin(); it != listeNames.end(); ++it)
std::cout << " " << *it << std::endl ;
{
unsigned int id = cont.getAttributeIndex(*it);
std::cout << " " << *it << " ("<<id<<")"<<std::endl ;
}
std::cout << "-------------------------" << std::endl ;
}
std::cout << "m_embeddings: " << std::hex ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment