* ./nimbus:

- Bug: In Grid::rectangularShape(), bad computation of the shape.
This commit is contained in:
Jean-Paul Chaput 2010-06-22 14:08:43 +00:00
parent fcbd24a9e2
commit 8bca37c2fa
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ void Grid::Clear()
// AR = x/y S = x*y = marginWidth*SH x=S/y AR = S/y^2
// y = sqrt(S/AR)
double y = sqrt ( marginWidth*rowHeight ) / aspectRatio;
double y = sqrt ( marginWidth*rowHeight / aspectRatio );
unsigned int rows = (unsigned int)(y / rowHeight);
if ( rows == 0 ) ++rows;