Changeset 12302

Show
Ignore:
Timestamp:
10/03/07 00:23:05 (1 year ago)
Author:
warmerdam
Message:

if setting an RRDNamesList value fails, grow the data (#1109)

Files:

Legend:

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

    r11897 r12302  
    15781578    // TODO: Need to add to end of array (thats pretty hard). 
    15791579    if( poRRDNamesList->SetStringField( szName, osLayerName ) != CE_None ) 
    1580         return -1; 
     1580    { 
     1581        poRRDNamesList->MakeData( poRRDNamesList->GetDataSize() + 3000 ); 
     1582        if( poRRDNamesList->SetStringField( szName, osLayerName ) != CE_None ) 
     1583            return -1; 
     1584    } 
    15811585 
    15821586/* -------------------------------------------------------------------- */