From 79f969453e1809123d970476986904a164b960b2 Mon Sep 17 00:00:00 2001 From: Moonhee Choi Date: Fri, 5 Jan 2018 16:10:15 +0900 Subject: [PATCH] Modified not to be added the invalid value except the defined orientation Change-Id: I7041e91401b9dc3193a3d59928a0c59c5c17f04a Signed-off-by: Moonhee Choi --- adaptors/ecore/wayland/window-impl-ecore-wl.cpp | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/adaptors/ecore/wayland/window-impl-ecore-wl.cpp b/adaptors/ecore/wayland/window-impl-ecore-wl.cpp index 2c46991..ca805b5 100644 --- a/adaptors/ecore/wayland/window-impl-ecore-wl.cpp +++ b/adaptors/ecore/wayland/window-impl-ecore-wl.cpp @@ -849,19 +849,22 @@ void Window::AddAvailableOrientation(Dali::Window::WindowOrientation orientation { bool found = false; - for( std::size_t i=0; i= Dali::Window::PORTRAIT) && (orientation <= Dali::Window::LANDSCAPE_INVERSE)) { - if(mAvailableOrientations[i] == orientation) + for( std::size_t i=0; i