]> git.saurik.com Git - wxWidgets.git/commitdiff
cast both ints to doubles for the X and Y scale factors
authorChris Elliott <biol75@york.ac.uk>
Wed, 17 Dec 2008 14:21:57 +0000 (14:21 +0000)
committerChris Elliott <biol75@york.ac.uk>
Wed, 17 Dec 2008 14:21:57 +0000 (14:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dcsvg.cpp

index 15781af016d53e8c34344bd25c9deb52257ea746..daafe55ff67588ea958935e113038008bcd6b127 100644 (file)
@@ -579,7 +579,7 @@ void wxSVGFileDCImpl::NewGraphics ()
     }
 
     sLast.Printf( wxT("stroke-width:%d\" \n   transform=\"translate(%.2g %.2g) scale(%.2g %.2g)\">"),
-                  w, (double)m_logicalOriginX, m_logicalOriginY, m_scaleX, m_scaleY  );
+                  w, double(m_logicalOriginX), double(m_logicalOriginY), m_scaleX, m_scaleY  );
 
     s = sBrush + sPenCap + sPenJoin + sPenStyle + sLast + newline + sWarn;
     write(s);