one last bit of iterator weirdness

Boudewijn Rempt boud at valdyas.org
Thu Apr 26 19:49:37 UTC 2012


On Thursday 26 April 2012 Apr, Cyrille Berger Skott wrote:
> On Thursday 26 Apr 2012, Boudewijn Rempt wrote:
> > I still cannot explain what is going on here exactly, there's a huge lack
> > of documentation in this area, but I managed to "fix" it...
> 
> I guess there is a transaction running on that srcDev.

Yes, that sounds right.

> The question is whether 
> you can use a non const iterator (and the conscequences for that).

Tried that, that doesn't work.

> Otherwise I 
> suggest adding the following method to the const iterator interface:
> 
> const quint8* constRawData() const;

I actually had exactly that at one point :-) But I wanted to avoid making that api available, preferring to give KisPainter some inside knowledge. If you think it better, I can go for that.

> The idea with not having it was that const iterator would be used on devices 
> where old tile == new tile.

Apparently that doesn't work out...

-- 
Boudewijn Rempt
http://www.valdyas.org, http://www.krita.org, http://www.boudewijnrempt.nl


More information about the kimageshop mailing list