Changeset 2683 for trunk/src


Ignore:
Timestamp:
10/30/12 19:17:54 (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: run sdflag with flagrow=[all rows] and flagmode='unflag'

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Bug fix on Scantable::flagRow. Do not throw exception if
all rows are unflagged.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r2672 r2683  
    864864void Scantable::flagRow(const std::vector<uInt>& rows, bool unflag)
    865865{
    866   if ( selector_.empty() && (rows.size() == table_.nrow()) )
     866  if (selector_.empty() && (rows.size() == table_.nrow()) && !unflag)
    867867    throw(AipsError("Trying to flag whole scantable."));
    868868
Note: See TracChangeset for help on using the changeset viewer.