From afa7da4a16a0817ea5564677f219f335ffbd1266 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 17 Jun 2000 22:39:47 +0000 Subject: [PATCH] fixed problem with set angle dialog git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/rotate/rotate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/rotate/rotate.cpp b/samples/rotate/rotate.cpp index a5fb9b378c..89c7a0d299 100644 --- a/samples/rotate/rotate.cpp +++ b/samples/rotate/rotate.cpp @@ -136,7 +136,8 @@ void MyFrame::OnAngle (wxCommandEvent &) degrees, -180, +180, this); - m_angle = (degrees * M_PI) / 180.0; + if ( degrees != -1 ) + m_angle = (degrees * M_PI) / 180.0; } void MyFrame::OnQuit (wxCommandEvent &)