Change-Id: Icd30b6f9cef6a99de64646f9c8ad4080df2194dd
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 );
+ }
}
}