<table><tr><td style="">ahmadosama added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D11901">View Revision</a></tr></table><br /><div><div><p>I have not tested it, I do not know what on the page should be rotated when rotating m_page->m_rects, I still trying to find out.<br />
What I did is that I replaced:<br />
 (*hlIt)->transform( RotationJob::rotationMatrix( oldRotation, m_rotation ) );<br />
with:<br />
(*hlIt)->transform( matrix );<br />
but the highlights were rotated correctly only from the original position.</p>

<p>But, I think that m_page->m_rects may not be rotated correctly because Okular::buildRotationMatrix(Rotation rotation), rotates only based on the new rotation and does not consider what the previous rotation was.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R223 Okular</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D11901">https://phabricator.kde.org/D11901</a></div></div><br /><div><strong>To: </strong>ahmadosama, Okular<br /><strong>Cc: </strong>aacid, ngraham, Okular, michaelweghorn<br /></div>