[calligra/krita-iterators2-rempt] krita/image/tiles3: Handle the situation where the ng iterators get an empty stretch

Cyrille Berger Skott cberger at cberger.net
Thu Apr 26 19:10:05 UTC 2012


On Thursday 26 Apr 2012, Boudewijn Rempt wrote:
> One other idea I had today was make the createIterator methods in
> KisPaintDevice return 0 if there's nothing to iterate over. After all, we
> pass shared pointers to iterators around now, so that makes it already
> actually necessary for the code to check whether we've got a real
> iterator.
I am not sure if I see the benefit. Instead of an assert, you get a crash. A 
crash that you cannot avoid in a release build.

-- 
Cyrille Berger Skott


More information about the kimageshop mailing list