Changeset 12519

Show
Ignore:
Timestamp:
10/23/07 11:28:53 (1 year ago)
Author:
mloskot
Message:

Ported fix of bug in opening shapefile ind in write mode to branches/1.4 (Ticket #1620).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.4/gdal/ogr/ogrsf_frmts/generic/ogr_miattrind.cpp

    r10646 r12519  
    225225/* -------------------------------------------------------------------- */ 
    226226    poINDFile = new TABINDFile(); 
    227     if( poINDFile->Open( pszMetadataFilename, "r+" ) != 0 ) 
     227 
     228    /* NOTE: Replaced r+ with r according to explanation in Ticket #1620. 
     229     * This change has to be observed if it doesn't cause any 
     230     * problems in future. (mloskot) 
     231     */ 
     232    if( poINDFile->Open( pszMetadataFilename, "r" ) != 0 ) 
    228233    { 
    229234        CPLDestroyXMLNode( psRoot );