Fossil SCM

Bug fix in the graph layout algorithm.

drh 2010-02-10 13:13 trunk
Commit 95ae79d5044a4401368e5633893dfb2044c8565f
1 file changed +1 -1
+1 -1
--- src/graph.c
+++ src/graph.c
@@ -230,11 +230,11 @@
230230
231231
/* Assign rails to all rows that are still unassigned.
232232
** The first primary child of a row goes on the same rail as
233233
** that row.
234234
*/
235
- inUse = 0;
235
+ inUse = (1<<(p->mxRail+1))-1;
236236
for(pRow=p->pLast; pRow; pRow=pRow->pPrev){
237237
int parentRid;
238238
if( pRow->iRail>=0 ) continue;
239239
assert( pRow->nParent>0 );
240240
parentRid = pRow->aParent[0];
241241
--- src/graph.c
+++ src/graph.c
@@ -230,11 +230,11 @@
230
231 /* Assign rails to all rows that are still unassigned.
232 ** The first primary child of a row goes on the same rail as
233 ** that row.
234 */
235 inUse = 0;
236 for(pRow=p->pLast; pRow; pRow=pRow->pPrev){
237 int parentRid;
238 if( pRow->iRail>=0 ) continue;
239 assert( pRow->nParent>0 );
240 parentRid = pRow->aParent[0];
241
--- src/graph.c
+++ src/graph.c
@@ -230,11 +230,11 @@
230
231 /* Assign rails to all rows that are still unassigned.
232 ** The first primary child of a row goes on the same rail as
233 ** that row.
234 */
235 inUse = (1<<(p->mxRail+1))-1;
236 for(pRow=p->pLast; pRow; pRow=pRow->pPrev){
237 int parentRid;
238 if( pRow->iRail>=0 ) continue;
239 assert( pRow->nParent>0 );
240 parentRid = pRow->aParent[0];
241

Keyboard Shortcuts

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