Skip to content

TypeError in diagram layouter #39

@kamills1248

Description

@kamills1248

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions