[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : phil
Repository : xara
Revision   : 1391
Date       : Thu Jun 29 23:01:18 BST 2006

Changed paths:
   M /Trunk/XaraLX/Kernel/rulers.cpp

Untested attempt to fix build server failure.


Diff:
Index: Trunk/XaraLX/Kernel/rulers.cpp
===================================================================
--- Trunk/XaraLX/Kernel/rulers.cpp	(revision 1390)
+++ Trunk/XaraLX/Kernel/rulers.cpp	(revision 1391)
@@ -444,7 +444,7 @@
 	// hence a scale factor to keep the labels in the range 1..999
 	double LogMax  = log10(max(max(XStart,XEnd),max(YStart,YEnd)));
 	INT32   MaxDP   = (INT32)floor(LogMax);
-	double ScaleFactor = (MaxDP<=2) ? 1 : 1/pow(10,MaxDP-2);
+	double ScaleFactor = (MaxDP<=2) ? 1 : 1/pow(10.0,MaxDP-2);
 
 	// determine how often major graticules can be drawn (ie 1 in N, where N is 1eX, 2eX, 5eX)
 	// (note: all done accurately with integers and multiplies)


Xara