From 0a83ee4ce086d9c46a5da1736e647e092b1c65f2 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 19 Sep 2008 15:03:20 +0000 Subject: Fixed gcc-4.1.2 compile error. --- client/collapser.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client/collapser.cc') diff --git a/client/collapser.cc b/client/collapser.cc index 7faf175..470db7a 100644 --- a/client/collapser.cc +++ b/client/collapser.cc @@ -151,11 +151,13 @@ void Collapser::anim() if(x < 1) { y = x * x * x; + int height; if(!is_collapsed) { - setFixedHeight((1 - y) * c_height + y * e_height); + height = (int)((1 - y) * c_height + y * e_height); } else { - setFixedHeight((1 - y) * e_height + y * c_height); + height = (int)((1 - y) * e_height + y * c_height); } + setFixedHeight(height); timer_id = startTimer(ANIM_INTERVAL); } else { -- cgit v1.2.3