build external cell names from name of region instead of from internal region id

This commit is contained in:
Marc Zinnschlag 2010-09-11 15:12:42 +02:00
parent db2b238328
commit 814d721e33
2 changed files with 16 additions and 4 deletions

View file

@ -226,12 +226,14 @@ namespace ESMS
const Cell *searchExtByRegion (const std::string& id) const
{
std::string id2 = toLower (id);
for (ExtCells::const_iterator iter = extCells.begin(); iter!=extCells.end(); ++iter)
{
const ExtCellsCol& column = iter->second;
for (ExtCellsCol::const_iterator iter = column.begin(); iter!=column.end(); ++iter)
{
if (iter->second->region==id)
if (toLower (iter->second->region)==id)
return iter->second;
}
}