From 76a819be636e86e9263b7d84c07993a1b98a67f8 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 27 Apr 2009 15:13:18 +0000 Subject: [PATCH] Disambiguate std::sqrt svn path=/trunk/KDE/kdebase/workspace/; revision=959929 --- effects/desktopgrid/desktopgrid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/effects/desktopgrid/desktopgrid.cpp b/effects/desktopgrid/desktopgrid.cpp index b7512a17c8..0bb4245eca 100644 --- a/effects/desktopgrid/desktopgrid.cpp +++ b/effects/desktopgrid/desktopgrid.cpp @@ -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++;