<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">&gt; Convert an integer mouse event coordinate to give the centre of the<br>
&gt; selected pixel, i.e. (5, 7) becomes (5.5, 7.5). Since we render with<br>
&gt; subpixel accuracy, this error becomes visible with small brush sizes,<br>
&gt; although other bugs currently mask this at times.<br>
<br>
</div>This sounds a bit worrying, though...</blockquote><div><br></div><div>I thing this should be reverted according to Qt&#39;s QRect tradition, i.e. (5,7)-&gt;(5.0,7.0). Or change ALL the Krita&#39;s code that uses QRectF::toAlignedRect() or QRectF(intRect) to a new type of conversion. Other way we&#39;ll dig a deep grave for ourselves using two completely different coordinate systems throughout the code.</div>
</div><br clear="all">PS:<br><div>viewToDocument and documentToView is implemented in several places now, this should be fixed first.<br><div><br>-- <br>Dmitry Kazakov<br>
</div></div>