<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I think it happened to me after a call to clearSelection, that can happen<br>

either by calling edit-&gt;clear, or edit-&gt;cut. It can also happen after the use<br>
of the eraser tool.<br>
</blockquote></div><br>Selections and cutting should use KisDataManager::clear(), through KisPaintDevice::fill() [1]. This method uses tiles to fill the rect and substitutes default tile, if the fill-pixel is default.<br>
<br>The eraser tool can use clear() too.<br><br>PS:<br>[1] - btw, we still don&#39;t have a fill() method of KisPaintDevice that takes a parameter of a QRect instead of pure digits. That is quite uncomfortable.<br><br>-- <br>
Dmitry Kazakov<br>