/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to viz/linegraph.py

  • Committer: Gary van der Merwe
  • Date: 2007-09-22 14:38:53 UTC
  • mto: This revision was merged to the branch mainline in revision 289.
  • Revision ID: garyvdm@gmail.com-20070922143853-9oosz5imkeu1w460
* Revert using child color for bottom of broken line.
* Fix passing of dup indexes to _find_free_column.

Show diffs side-by-side

added added

removed removed

Lines of Context:
203
203
                            _find_free_column(columns,
204
204
                                              empty_column,
205
205
                                              col_search_order,
206
 
                                              (rev_index + 1, rev_index + 1))
 
206
                                              (rev_index + 1,))
207
207
                        _mark_column_as_used(columns,
208
208
                                             child_line_col_index,
209
 
                                             (rev_index + 1, rev_index + 1))
 
209
                                             (rev_index + 1,))
210
210
                        parent_col_line_index = \
211
211
                            _find_free_column(columns,
212
212
                                              empty_column,
213
213
                                              col_search_order,
214
 
                                              (parent_index - 1, parent_index - 1))
 
214
                                              (parent_index - 1,))
215
215
                        _mark_column_as_used(columns,
216
216
                                             parent_col_line_index,
217
 
                                             (parent_index - 1, parent_index - 1))
 
217
                                             (parent_index - 1,))
218
218
                        lines.append((rev_index,
219
219
                                      parent_index,
220
220
                                      (child_line_col_index,
279
279
            linegraph[parent_index-2][2].append(
280
280
                (None,
281
281
                 line_col_indexes[1],
282
 
                 child_color))
 
282
                 parent_color))
283
283
            # line from the line's column to the parent's column
284
284
            linegraph[parent_index-1][2].append(
285
285
                (line_col_indexes[1],
286
286
                 parent_col_index,
287
 
                 child_color))
 
287
                 parent_color))
288
288
            
289
289
    
290
290
    return (linegraph, revid_index)