Changeset 1026 for trunk/src


Ignore:
Timestamp:
04/21/06 11:38:38 (19 years ago)
Author:
mar637
Message:

Fix for Ticket #22 - trying to flag whole scantable. Added test for mask.size() == 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/Scantable.cpp

    r1009 r1026  
    581581void Scantable::flag(const std::vector<bool>& msk)
    582582{
    583   if ( selector_.empty() )
     583  if ( selector_.empty()  && msk.size() == 0 )
    584584    throw(AipsError("Trying to flag whole scantable."));
    585585  if ( msk.size() == 0 ) {
Note: See TracChangeset for help on using the changeset viewer.