From 8bca37c2fad2b5bfc234b40bb9ab333c7810626b Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Tue, 22 Jun 2010 14:08:43 +0000 Subject: [PATCH] * ./nimbus: - Bug: In Grid::rectangularShape(), bad computation of the shape. --- nimbus/src/Grid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimbus/src/Grid.cpp b/nimbus/src/Grid.cpp index 01b20e46..e398d4b0 100644 --- a/nimbus/src/Grid.cpp +++ b/nimbus/src/Grid.cpp @@ -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;