Changeset 13507

Show
Ignore:
Timestamp:
01/09/08 23:21:17 (4 months ago)
Author:
warmerdam
Message:

fix BASEDATA count value (preceding pointer) at 1 (#2144)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gdal/frmts/hfa/hfafield.cpp

    r13343 r13507  
    379379        if( nBytes > -1 ) 
    380380            nCount = nItemCount; 
     381 
     382        // The count returned for BASEDATA's are the contents,  
     383        // but here we really want to mark it as one BASEDATA instance 
     384        // (see #2144) 
     385        if( chItemType == 'b' )  
     386            nCount = 1; 
    381387 
    382388        /* Set the size from string length */