On Sun, Jul 17, 2011 at 9:09 AM, Cyrille Berger Skott <cberger@cberger.net> wrote:
On Sunday 17 July 2011, Sven Langkamp wrote:
> On Sat, Jul 16, 2011 at 10:17 PM, Sven Langkamp
<sven.langkamp@gmail.com>wrote:
> > On Sat, Jul 16, 2011 at 10:06 PM, Cyrille Berger Skott <
> > Hmm I somehow saved the wrong diff and reverted the other code :/
> >
> > I also tried the params method. That was called by the result was exactly
> > the same as when I didn't overwrite anything.
>
> Correction. Right code after all. I checked and at least the method is
> called, but does nothing.

Maybe you can write a unit test ? It should not be too difficult to create some
small buffers that exhibits the result you want, and then if the unit test
fails, I can have a look.

I have added a unit test (KisPainterTest::testBltToSelection). It does bitBlt a black rect on a selection and check if that area is MIN_SELECTED.