Changeset 12303

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

if growing a positioned node, reset nFilePos, nd mark links dirty (#1109)

Files:

Legend:

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

    r10645 r12303  
    303303 
    304304        MarkDirty(); 
     305 
     306/* -------------------------------------------------------------------- */ 
     307/*      If the data already had a file position, we now need to         */ 
     308/*      clear that, forcing it to be rewritten at the end of the        */ 
     309/*      file.  Referencing nodes will need to be marked dirty so        */ 
     310/*      they are rewritten.                                             */ 
     311/* -------------------------------------------------------------------- */ 
     312        if( nFilePos != 0 ) 
     313        { 
     314            nFilePos = 0; 
     315            if (poPrev != NULL) poPrev->MarkDirty();  
     316            if (poNext != NULL) poNext->MarkDirty();  
     317            if (poChild != NULL) poChild->MarkDirty();  
     318            if (poParent != NULL) poParent->MarkDirty();  
     319        } 
    305320    } 
    306321