Fossil SCM

Fix another graph layout bug.

drh 2010-02-08 21:42 trunk
Commit f312587a650ad4db7e80043d8622709d646b7fc7
1 file changed +6
--- src/graph.c
+++ src/graph.c
@@ -261,10 +261,16 @@
261261
pDesc=pDesc->pNext){}
262262
if( pDesc==0 ) continue;
263263
if( pDesc->mergeOut<0 ){
264264
pDesc->mergeOut = findFreeRail(p, pRow->idx, pDesc->idx, 0);
265265
pDesc->mergeUpto = pRow->idx;
266
+ mask = 1<<pDesc->mergeOut;
267
+ pDesc->railInUse |= mask;
268
+ for(pDesc=pRow->pNext; pDesc && pDesc->rid!=parentRid;
269
+ pDesc=pDesc->pNext){
270
+ pDesc->railInUse |= mask;
271
+ }
266272
}
267273
pRow->mergeIn |= 1<<pDesc->mergeOut;
268274
}
269275
}
270276
271277
--- src/graph.c
+++ src/graph.c
@@ -261,10 +261,16 @@
261 pDesc=pDesc->pNext){}
262 if( pDesc==0 ) continue;
263 if( pDesc->mergeOut<0 ){
264 pDesc->mergeOut = findFreeRail(p, pRow->idx, pDesc->idx, 0);
265 pDesc->mergeUpto = pRow->idx;
 
 
 
 
 
 
266 }
267 pRow->mergeIn |= 1<<pDesc->mergeOut;
268 }
269 }
270
271
--- src/graph.c
+++ src/graph.c
@@ -261,10 +261,16 @@
261 pDesc=pDesc->pNext){}
262 if( pDesc==0 ) continue;
263 if( pDesc->mergeOut<0 ){
264 pDesc->mergeOut = findFreeRail(p, pRow->idx, pDesc->idx, 0);
265 pDesc->mergeUpto = pRow->idx;
266 mask = 1<<pDesc->mergeOut;
267 pDesc->railInUse |= mask;
268 for(pDesc=pRow->pNext; pDesc && pDesc->rid!=parentRid;
269 pDesc=pDesc->pNext){
270 pDesc->railInUse |= mask;
271 }
272 }
273 pRow->mergeIn |= 1<<pDesc->mergeOut;
274 }
275 }
276
277

Keyboard Shortcuts

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