<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>As far as I know rotating m_page->m_rects should rotate annotations on the page, the annotations seem to work well when rotating them.</p>

<p>When rotating the highlights I tried to replace:<br />
(*hlIt)->transform( RotationJob::rotationMatrix( oldRotation, m_rotation ) );<br />
with<br />
(*hlIt)->transform( matrix );</p>

<p>but highlights were rotated correctly only from the original orientation.</p>

<p>I am thinking of creating another function to get the rotation matrix for the highlights, or modify the Okular::buildRotationMatrix<br />
as follows Okular::buildRotationMatrix(Rotation oldRotation = Rotation0, Rotation newRotation)</p>

<p>I am still going through the code to find a better way to solve this bug.</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>