Changeset 2430


Ignore:
Timestamp:
03/14/12 11:45:49 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Fixed a bug that MOLECULES table has only one row even if input data
has multiple rest frequency settings.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/FillerBase.cpp

    r2289 r2430  
    121121  Int idx = -1 ;
    122122  for ( uInt i = 0 ; i < nEntry ; i++ ) {
    123     if ( restfreq.conform( mEntry_[i] ) ) {
    124       if ( allEQ( restfreq, mEntry_[i] ) ) {
    125         idx = i ;
    126         break ;
    127       }
     123    if ( restfreq.conform( mEntry_[i] ) &&
     124         allEQ( restfreq, mEntry_[i] ) ) {
     125      idx = i ;
     126      break ;
    128127    }
    129128  }
     
    134133    Vector<String> tmp ;
    135134    id = table_->molecules().addEntry(restfreq,tmp,tmp) ;
    136     mEntry_.push_back( restfreq ) ;
     135    mEntry_.push_back( restfreq.copy() ) ;
    137136    mIdx_.push_back( id ) ;
    138137  }
Note: See TracChangeset for help on using the changeset viewer.