928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
|
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
|
-
+
|
}
/* Find the "root" of the branch. The root is a different branch
** from which the pRow branch emerges. There might not be a root
** if the pRow branch started off the bottom of the screen.
*/
for(pRoot=pBottom->pNext; pRoot; pRoot=pRoot->pNext){
if( pRoot->aiRiser[iFrom]>=0 ) break;
if( pRoot->aiRiser[iFrom]==pBottom->idx ) break;
}
if( pRoot && pRoot->iRail==iTo ){
/* The parent branch from which this branch emerges is on the
** same rail as pRow. Do not shift as that would stack a child
** branch directly above its parent. */
continue;
}
|