I don't think we need this.<br><br>KisTileHashTableIterator returns the number of non-default tiles, or (more precisely) the number of preallocated tiles. After you fixed the extents bug, these terms coincide. So this check is superfluous.<br clear="all">
<br>There is (was?) another bug you can fix: after loading a .kra file the default pixel of the paint device is not restored and is set to (0,0,0,0). I think this should be done at the level of KisPaintDevice.<br><br>-- <br>
Dmitry Kazakov<br>