]> git.saurik.com Git - wxWidgets.git/commitdiff
fix bug in wxGDIPlusMatrixData::Rotate: it must take radians for coherency with docs...
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Wed, 9 Jun 2010 17:58:13 +0000 (17:58 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Wed, 9 Jun 2010 17:58:13 +0000 (17:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/graphics.cpp

index 288997c7c1fbf9f4ca2fdcaa25755ff3b3291a37..d0c3c643ba4645c564838fd01b4b466423daadfb 100644 (file)
@@ -1044,7 +1044,7 @@ void wxGDIPlusMatrixData::Scale( wxDouble xScale , wxDouble yScale )
 // add the rotation to this matrix (radians)
 void wxGDIPlusMatrixData::Rotate( wxDouble angle )
 {
-    m_matrix->Rotate( angle );
+    m_matrix->Rotate( RadToDeg(angle) );
 }
 
 //