Closed e-calder closed 3 years ago
It is interesting we never hit that one before ! I believe this code relies on the ability that existed in Python 2 to order any object. However since it simply used pointer value for thing without a comparison operator, ignoring the item in diff seems perfectly reasonable to me. Could you make a PR and possibly add a test for this ?
@sccolbert do you agree with my diagnostic ?
@MatthieuDartiailh Your assessment is correct. The fix proposed in #448 looks good to me.
Thanks both
You are welcome @e-calder . Thanks for the PR
Hi,
I've encountered the following error when using FlowItems with a
stretch
orortho_stretch
greater than 1.The stack trace is below:
Its a bit more complicated in my application but a simple repro is:
Now I haven't sent a PR as I don't know if this fix is the right approach but replacing:
diffs.sort()
at lines 360 and 576 of q_flow_layout.py with:
diffs.sort(key=lambda i: i[0])
seems to sort it, for my case at least.
I'd appreciate your input on this one please.
Thanks in advance,
Emy