Changeset 2975 for trunk/src


Ignore:
Timestamp:
07/14/14 18:48:30 (10 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-5545, CAS-6597

Ready for Test: Yes

Interface Changes: Yes/No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Fix for a bug in row flag handling.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MSWriter.cpp

    r2906 r2975  
    290290  {
    291291    uInt idx = 0;
    292     while( !isFilled[idx] && idx < 4 ) ++idx;
     292    while( idx < 4 && !isFilled[idx] ) ++idx;
    293293    return idx;
    294294  }
     
    350350  {
    351351    // CAS-5545 FLAG must all be set True if FLAG_ROW is True
    352     for (uInt ipol = 0; ipol < npol; ++ipol) {
    353       if (flagRow[ipol]) {
     352    for (uInt ipol = 0; ipol < 4; ++ipol) {
     353      if (isFilled[ipol] and flagRow[ipol]) {
    354354        flag(IPosition(2, ipol, 0), IPosition(2, ipol, nchan-1)) = True;
    355355      }
     
    396396  {
    397397    // CAS-5545 FLAG must all be set True if FLAG_ROW is True
    398     for (uInt ipol = 0; ipol < npol; ++ipol) {
    399       if (flagRow[ipol]) {
     398    for (uInt ipol = 0; ipol < 4; ++ipol) {
     399      if (isFilled[ipol] and flagRow[ipol]) {
    400400        flag(IPosition(2, ipol, 0), IPosition(2, ipol, nchan-1)) = True;
    401401      }
Note: See TracChangeset for help on using the changeset viewer.