Re: [Xbae-discuss] xbaeAdjustTopRow
Brought to you by:
dannybackx
From: Danny B. <dan...@sk...> - 2002-10-15 21:52:23
|
Joe, Thanks for reporting this. There are several parts to the answer. We've changed a lot since 4.9.5, and the top_row field is part of what's changed. Therefore, could you test whether this also happens with 4.9.13 ? If it does, could you provide us with a stack trace and possibly information that we can use to reproduce ? Thanks, Danny > "Potts, Joe" wrote: > > Hello, my name is Joe Potts and I work at Lockheed Martin's Air Traffic > Management Division. While using the Matrix (version 4.9.5), we are receiving > a divide by zero exception in the first line of the routine xbaeAdjustTopRow. > The first line is: > > int rows_visible = VISIBLE_HEIGHT(mw) / SOME_ROW_HEIGHT(mw, > mw->matrix.top_row); > > Drilling down the SOME_ROW_HEIGHT macro leaves you with this statement: > > mw->matrix.row_heights[mw->matrix.top_row] > > The problem occurs because mw->matrix.top_row evaluates to -1, and the entire > denominator evaluates to 0. Uh-oh... > > My question is what the value of -1 for the top_row variable means? Is it a > default for something? I do not see it as something we are setting > explicitly. What are the circumstances of the top_row variable being set to > -1? -- Danny Backx (da...@gn... dan...@sk...) Home page : http://users.skynet.be/danny.backx Projects: LessTif (http://lesstif.sourceforge.net) Xbae (http://xbae.sourceforge.net) |