Disambiguate std::sqrt

svn path=/trunk/KDE/kdebase/workspace/; revision=959929
This commit is contained in:
Adriaan de Groot 2009-04-27 15:13:18 +00:00
parent 000b7bed5c
commit 76a819be63

View file

@ -809,7 +809,7 @@ void DesktopGridEffect::setup()
gridSize = effects->desktopGridSize();
break;
case LayoutAutomatic:
y = sqrt( numDesktops ) + 0.5;
y = sqrt( float( numDesktops ) ) + 0.5;
x = float( numDesktops ) / float( y ) + 0.5;
if( x * y < numDesktops )
x++;