Hi,<br><br>looking at <a href="https://bugs.kde.org/show_bug.cgi?id=228983">https://bugs.kde.org/show_bug.cgi?id=228983</a> I found out that we currently have a problem with defaultBounds there.<br>I have added a new unit test see KisPixelSelectionTest::testInvertWithImage.<br>
<br>The problem is that after inverting the pixel selection selectedExactRect is &quot;infinite&quot;. I would expect the it to have the size of the image.<br>The selection has the rootlayer projection as parent and the projection has the default defaultBounds which is doesn&#39;t use the image bounds.<br>
<br>Should we set the defaultBounds on the projection too?<br><br><br>Sven<br>