summaryrefslogtreecommitdiff
path: root/core/applets/rotateapplet/rotate.cpp
Unidiff
Diffstat (limited to 'core/applets/rotateapplet/rotate.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/applets/rotateapplet/rotate.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/applets/rotateapplet/rotate.cpp b/core/applets/rotateapplet/rotate.cpp
index 8f323d6..653c61f 100644
--- a/core/applets/rotateapplet/rotate.cpp
+++ b/core/applets/rotateapplet/rotate.cpp
@@ -43,3 +43,2 @@ RotateApplet::RotateApplet ( )
43 m_native = true; 43 m_native = true;
44 m_startupRot = QPEApplication::defaultRotation();
45} 44}
@@ -92,7 +91,8 @@ void RotateApplet::activated ( )
92{ 91{
92 int currentRotation = QPEApplication::defaultRotation();
93 int newRotation; 93 int newRotation;
94 if ( m_native == true ) { 94 if ( m_native == true ) {
95 newRotation = m_startupRot + 90; 95 newRotation = currentRotation + 90;
96 } else { 96 } else {
97 newRotation = m_startupRot; 97 newRotation = currentRotation - 90;
98 } 98 }