summaryrefslogtreecommitdiff
path: root/client/collapser.cc
diff options
context:
space:
mode:
authordeva <deva>2008-09-19 15:03:20 +0000
committerdeva <deva>2008-09-19 15:03:20 +0000
commit0a83ee4ce086d9c46a5da1736e647e092b1c65f2 (patch)
treeb32f1b5887deb7f2785b168427b9ddef48572638 /client/collapser.cc
parent463404ce952bffb323cd68335eb5e326d7837c88 (diff)
Fixed gcc-4.1.2 compile error.
Diffstat (limited to 'client/collapser.cc')
-rw-r--r--client/collapser.cc6
1 files changed, 4 insertions, 2 deletions
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 {