IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 15, 2008, 9:37:33 AM (18 years ago)
Author:
eugene
Message:

allow empty region string to imply [0:0,0:0] : REVIEW

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psRegion.c

    r13991 r16503  
    103103    }
    104104
     105    // XXX this is perhaps excessive: if the string is empty, assume 0,0,0,0
     106    if (*region == 0) {
     107        return psRegionSet(0,0,0,0);
     108    }
     109
    105110    if (sscanf(region,"[%d:%d,%d:%d]",&col0,&col1,&row0,&row1) < 4) {
    106         psError(PS_ERR_BAD_PARAMETER_NULL, true,
    107                 _("Specified subsection string, '%s', can not be parsed.  Must be in the form '[x1:x2,y1:y2]'."),
    108                 region);
    109         return psRegionSet(NAN,NAN,NAN,NAN);
     111        // psError(PS_ERR_BAD_PARAMETER_NULL, true,
     112        // ("Specified subsection string, '%s', can not be parsed.  Must be in the form '[x1:x2,y1:y2]'."),
     113        // region);
     114        // return psRegionSet(NAN,NAN,NAN,NAN);
     115        return psRegionSet(0,0,0,0);
    110116    }
    111117
Note: See TracChangeset for help on using the changeset viewer.