Commit d8f8ed5b authored by Enrico Ros's avatar Enrico Ros

on patch_032: more solaris fixes

svn path=/branches/kpdf/annotations/kdegraphics/kpdf/; revision=424886
parent 2eae6f9a
......@@ -445,13 +445,13 @@ void PageViewToolBar::buildToolBar()
{
myCols = 1 + (buttonsNumber * toolBarGridSize) /
(parentHeight - toolBarGridSize);
myRows = (int)ceilf( (float)buttonsNumber / (float)myCols );
myRows = (int)ceil( (float)buttonsNumber / (float)myCols );
}
else
{
myRows = 1 + (buttonsNumber * toolBarGridSize) /
(parentWidth - toolBarGridSize);
myCols = (int)ceilf( (float)buttonsNumber / (float)myRows );
myCols = (int)ceil( (float)buttonsNumber / (float)myRows );
}
// 2. compute widget size (from rows/cols)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment