[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    [PATCH] Karbon + gcc3.2
From:       Jan Spitalnik <spitalnik () penguin ! cz>
Date:       2002-10-18 15:13:16
[Download RAW message or body]

Hi,

this fixes compilation of koffice/karbon/tools/vtexttool.cc
comments?
Brgds,
		spity

PS: please CC me as I'm not on the list, TIA

-- 
Jan Spitalnik <spitalnik@penguin.cz>





["vtexttool.diff" (text/x-diff)]

--- vtexttool.cc.orig	2002-10-13 18:34:45.000000000 +0200
+++ vtexttool.cc	2002-10-17 21:47:37.000000000 +0200
@@ -80,7 +80,7 @@
 	int dx = e->x() - width() / 2;
 	int dy = e->y() - height() / 2;
 
-	float fd = sqrt( dx * dx + dy * dy );
+	float fd = sqrt( (double) dx * (double) dx + (double) dy * (double) dy );
 	int a;
 
 	if( fd == 0 )

_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic