patches/wxsvg-01-sqrt.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 71 1605cd228b12
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name

diff -ur wxsvg-1.0b7-orig/include/wxSVG/SVGLength.h wxsvg-1.0b7/include/wxSVG/SVGLength.h
--- wxsvg-1.0b7-orig/include/wxSVG/SVGLength.h	2005-07-29 03:09:58.000000000 +0700
+++ wxsvg-1.0b7/include/wxSVG/SVGLength.h	2006-11-23 11:25:15.821208390 +0700
@@ -62,7 +62,7 @@
 	inline void ToViewportSize(float viewportWidth, float viewportHeight)
 	{
 	  m_value = m_valueInSpecifiedUnits*
-		sqrt(viewportWidth*viewportWidth + viewportHeight*viewportHeight)/sqrt(2)/100;
+		sqrt(viewportWidth*viewportWidth + viewportHeight*viewportHeight)/sqrt((double)2)/100;
 	}
 
     virtual void NewValueSpecifiedUnits(wxSVG_LENGTHTYPE unitType, double valueInSpecifiedUnits);