KrzyHonk/bpmn-python

TypeError in diagram layouter

Opened this issue · 0 comments

In function insert_into_grid(grid, row, col, node_id) in bpmn_diagram_layouter.py there's (as a result of some refactor):

grid_cell.row += consts.Consts.width

Which always causes TypeError as value of this const is:

width = "width"

and trying to add integer and string in Python doesn't end well. Probably it should be either:

grid_cell.row += consts.Consts.grid_column_width

which is equal to:

grid_column_width = 2

or:

grid_cell.row += 1

as the comment above this operation suggests:

# if cell is already occupied, insert new row