The loop to translate the anchor shape position in TextDocumentImpl was mis-written, always testing shape's parent, instead of parent's parent. This was creating an infinite loop in case an email address was present in a table for instance.
Details
Details
Diff Detail
Diff Detail
- Repository
- R8 Calligra
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Comment Actions
Indeed that doesn't look like a good loop, if triggered once, nothing affecting the break out condition inside of it. But isn't the same thing happening also at the beginning of this method, and actually same kind of construct being there in spreadsheet and presentation impls too?
Comment Actions
Thank you pvuorela pointing out other places for this construct. I've updated the patch with a fix for the faulty loops for spreadsheets and presentations also.
Comment Actions
Having a bit strange rendering for TextDocumentImpl.cpp changes here, but the raw diff looks good now. Trust all good :)