From 5cdfee44e75b9a3635350aa261818e0a3bb44c5f Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Thu, 15 Dec 2016 17:23:10 -0200 Subject: File handling implemented --- Project/Text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Project/Text.cpp') diff --git a/Project/Text.cpp b/Project/Text.cpp index 411520f..f012044 100644 --- a/Project/Text.cpp +++ b/Project/Text.cpp @@ -131,7 +131,7 @@ void Text::Rotate(bool clockwise) if(!clockwise) rotAngle = -m_rotationAngle; m_angle += rotAngle; - if(m_angle >= 360.0) m_angle = 0.0; + if(m_angle >= 360 || m_angle <= -360) m_angle = 0.0; } bool Text::ShowForm(wxWindow* parent, std::vector elementList) -- cgit