Skip to content

Commit

Permalink
Correct bank numbers when not in numerical sequence re #7617
Browse files Browse the repository at this point in the history
Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
  • Loading branch information
KarlPalmen committed Sep 18, 2013
1 parent 6e25758 commit 99a5bb2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,10 @@ namespace DataHandling

for( size_t i=0; i<num_banks; ++i)
{
API::Column_const_sptr column = paramTable->getColumn( i+1 );
const double bankNumber = column->cell<double>(0);
std::ostringstream bankName;
bankName << "Bank" << (i+1);
bankName << "Bank" << bankNumber;
Element* bankElem = mDoc->createElement("component-link");
bankElem->setAttribute("name",bankName.str());
rootElem->appendChild(bankElem);
Expand Down

0 comments on commit 99a5bb2

Please sign in to comment.