Skip to content

Bug: Invalid-looking comparison in reading_order_rb.py #98

@stestagg

Description

@stestagg

This line:

elem.page_no != sorted_elements[ind_p1].label

Looks wrong to me, comparing page_no with a label:
elem.page_no != sorted_elements[ind_p1].label

I assume it's meant to read:
elem.page_no != sorted_elements[ind_p1].page_no
but it's hard to be sure as it's part of a multi-line if.

Apologies if this is actually doing something super subtle that I missed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions