davidhurka added a comment.
Turns out that the coordinate system of RegularAreaRect, as it is used by TextPage::textArea(TextSelection), is //not// independent of the page display. textArea() transforms the whole RegularAreaRect with the current totalRotation() of the Page. REPOSITORY R223 Okular REVISION DETAIL https://phabricator.kde.org/D21266 To: davidhurka, #okular Cc: aacid, okular-devel, joaonetto, tfella, ngraham, darcyshen