Changeset 12504

Show
Ignore:
Timestamp:
10/22/07 20:50:55 (1 year ago)
Author:
warmerdam
Message:

Use CSLTestBoolean() for relativetoVrt() instead of only accepting numbers.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gdal/ogr/ogrsf_frmts/vrt/ogrvrtlayer.cpp

    r10645 r12504  
    159159    } 
    160160 
    161     if( atoi(CPLGetXMLValue( psLTree, "SrcDataSource.relativetoVRT", "0")) ) 
     161    if( CSLTestBoolean(CPLGetXMLValue( psLTree, "SrcDataSource.relativetoVRT",  
     162                                       "0")) ) 
    162163    { 
    163164        pszSrcDSName = CPLStrdup(