Change-Id: I7041e91401b9dc3193a3d59928a0c59c5c17f04a
Signed-off-by: Moonhee Choi <mh0310.choi@samsung.com>
{
bool found = false;
- for( std::size_t i=0; i<mAvailableOrientations.size(); i++ )
+ if ((orientation >= Dali::Window::PORTRAIT) && (orientation <= Dali::Window::LANDSCAPE_INVERSE))
{
- if(mAvailableOrientations[i] == orientation)
+ for( std::size_t i=0; i<mAvailableOrientations.size(); i++ )
{
- found = true;
- break;
+ if(mAvailableOrientations[i] == orientation)
+ {
+ found = true;
+ break;
+ }
}
- }
- if( ! found )
- {
- mAvailableOrientations.push_back(orientation);
- SetAvailableOrientations( mAvailableOrientations );
+ if( ! found )
+ {
+ mAvailableOrientations.push_back(orientation);
+ SetAvailableOrientations( mAvailableOrientations );
+ }
}
}