Disambiguate std::sqrt
svn path=/trunk/KDE/kdebase/workspace/; revision=959929
This commit is contained in:
parent
000b7bed5c
commit
76a819be63
1 changed files with 1 additions and 1 deletions
|
@ -809,7 +809,7 @@ void DesktopGridEffect::setup()
|
||||||
gridSize = effects->desktopGridSize();
|
gridSize = effects->desktopGridSize();
|
||||||
break;
|
break;
|
||||||
case LayoutAutomatic:
|
case LayoutAutomatic:
|
||||||
y = sqrt( numDesktops ) + 0.5;
|
y = sqrt( float( numDesktops ) ) + 0.5;
|
||||||
x = float( numDesktops ) / float( y ) + 0.5;
|
x = float( numDesktops ) / float( y ) + 0.5;
|
||||||
if( x * y < numDesktops )
|
if( x * y < numDesktops )
|
||||||
x++;
|
x++;
|
||||||
|
|
Loading…
Reference in a new issue