Fossil

Check-in [c5f3e87b]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a bug in the graph display that causes an assertion fault if the timeline contains a node that has no parents.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:c5f3e87bb0e1198ac37a7d09b4202de86eebb838
User & Date: drh 2010-02-08 16:40:45
Context
2010-02-08
16:58
Fix a bug in timeline graph generation. check-in: 399d1ca0 user: drh tags: trunk
16:40
Fix a bug in the graph display that causes an assertion fault if the timeline contains a node that has no parents. check-in: c5f3e87b user: drh tags: trunk
16:12
Implement a graph of changes in the timeline to replace the older flashing asterisk mechanism. Does not work on IE6. Probably still contains bugs. check-in: d89fea6a user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/graph.c.

205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
    }
  }

  /* Identify rows where the primary parent is off screen.  Assign
  ** each to a rail and draw descenders to the bottom of the screen.
  */
  for(pRow=p->pFirst; pRow; pRow=pRow->pNext){
    if( pRow->nParent>0 && !bag_find(&allRids,pRow->aParent[0]) ){
      pRow->iRail = ++p->mxRail;
      pRow->bDescender = 1;
      mask = 1<<(pRow->iRail);
      for(pDesc=pRow; pDesc; pDesc=pDesc->pNext){
        pDesc->railInUse |= mask;
      }
    }
  }








|

|







205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
    }
  }

  /* Identify rows where the primary parent is off screen.  Assign
  ** each to a rail and draw descenders to the bottom of the screen.
  */
  for(pRow=p->pFirst; pRow; pRow=pRow->pNext){
    if( pRow->nParent==0 || !bag_find(&allRids,pRow->aParent[0]) ){
      pRow->iRail = ++p->mxRail;
      pRow->bDescender = pRow->nParent>0;
      mask = 1<<(pRow->iRail);
      for(pDesc=pRow; pDesc; pDesc=pDesc->pNext){
        pDesc->railInUse |= mask;
      }
    }
  }