Correct anchor detection in QML components.
Summary: 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.
Reviewers: leinir, pvuorela, danders, boemann
Reviewed By: leinir, pvuorela
Subscribers: Calligra-Devel-list, #calligra:_3.0
Tags: #calligra:_3.0
Differential Revision: https://phabricator.kde.org/D23492