javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtscreen.cpp
branchRCL_3
changeset 60 6c158198356e
parent 24 0fd27995241b
--- a/javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtscreen.cpp	Thu Jul 15 18:31:06 2010 +0300
+++ b/javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swtscreen.cpp	Thu Aug 19 09:48:13 2010 +0300
@@ -389,6 +389,12 @@
 //
 void CSwtScreen::SetOrientationL(TInt aOrientation)
 {
+    // Checks whether some component fixed the screen orientation
+    if (iDisplay.UiUtils().IsScreenOrientationFixed())
+    {
+        User::Leave(ESwtErrorCannotSetSelection);
+    }
+
     iOrientation = aOrientation;
     if (IsScreenOn())
     {