[haiku-appserver] Re: some help please

  • From: Stefano Ceccherini <burton666@xxxxxxxxxxx>
  • To: haiku-appserver@xxxxxxxxxxxxx
  • Date: 19 Sep 2005 10:23:05 -0000

>BTW this shouldn't happen at all, as the two for() loops >inside 
>OrRegionComplex() should make sure that the band >contains at least one 
>rectangle. That's why I added the >ASSERT inside ROR in the first place.
>So I (we) need to find out what's wrong inside those for() >loops.

Ok, I think I found the problem.
in OrRegionComplex, the top value in the do loop is incremented by 1 after each 
iteration. But while in the first iteration it contains the value of the top 
coordinate of a rectangle, the next iteration that may be false, so ROr can be 
called for an empty band (if bottom is initialized to the top coordinate of 
another rect).
I.e using Ingo's data: rectangles are: A: top=193, bottom=213. B=top=215, 
First band: top=193, bottom = 213. Next iteration: top=214, bottom = 214 
(215-1). And that's the empty one.

Stefano Ceccherini aka Jack Burton
Non resistere alla tentazione di conoscere nuovi amori!
Oltre 1.800.000 persone ti stanno aspettando su Incontri.
Vivi le emozioni fino in fondo!

Other related posts: