Fossil SCM

Further refinement of the time-warp graph rendering.

drh 2011-02-11 17:31 trunk
Commit 9b9d52bbb9c5b60a4dd9a2d384ab95f99e4e27e4
1 file changed +1
--- src/graph.c
+++ src/graph.c
@@ -388,10 +388,11 @@
388388
pParent->aiRiser[pRow->iRail] = pRow->idx;
389389
}else{
390390
/* Timewarp case: Child occurs earlier in time than parent and
391391
** appears below the parent in the timeline. */
392392
int iDownRail = ++p->mxRail;
393
+ if( iDownRail<1 ) iDownRail = ++p->mxRail;
393394
pRow->iRail = ++p->mxRail;
394395
pRow->railInUse = 1<<pRow->iRail;
395396
pParent->aiRiser[iDownRail] = pRow->idx;
396397
mask = 1<<iDownRail;
397398
for(pLoop=p->pFirst; pLoop; pLoop=pLoop->pNext){
398399
--- src/graph.c
+++ src/graph.c
@@ -388,10 +388,11 @@
388 pParent->aiRiser[pRow->iRail] = pRow->idx;
389 }else{
390 /* Timewarp case: Child occurs earlier in time than parent and
391 ** appears below the parent in the timeline. */
392 int iDownRail = ++p->mxRail;
 
393 pRow->iRail = ++p->mxRail;
394 pRow->railInUse = 1<<pRow->iRail;
395 pParent->aiRiser[iDownRail] = pRow->idx;
396 mask = 1<<iDownRail;
397 for(pLoop=p->pFirst; pLoop; pLoop=pLoop->pNext){
398
--- src/graph.c
+++ src/graph.c
@@ -388,10 +388,11 @@
388 pParent->aiRiser[pRow->iRail] = pRow->idx;
389 }else{
390 /* Timewarp case: Child occurs earlier in time than parent and
391 ** appears below the parent in the timeline. */
392 int iDownRail = ++p->mxRail;
393 if( iDownRail<1 ) iDownRail = ++p->mxRail;
394 pRow->iRail = ++p->mxRail;
395 pRow->railInUse = 1<<pRow->iRail;
396 pParent->aiRiser[iDownRail] = pRow->idx;
397 mask = 1<<iDownRail;
398 for(pLoop=p->pFirst; pLoop; pLoop=pLoop->pNext){
399

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button