Set false in inherit layout direction when SetProperty( LAYOUT_DIRECTION, ... ) is...
[platform/core/uifw/dali-core.git] / dali / internal / event / actors / actor-impl.cpp
index f7df4d4..e1675cf 100644 (file)
@@ -2887,10 +2887,10 @@ void Actor::SetDefaultProperty( Property::Index index, const Property::Value& pr
     case Dali::DevelActor::Property::LAYOUT_DIRECTION:
     {
       Dali::DevelActor::LayoutDirection::Type direction = mLayoutDirection;
+      mInheritLayoutDirection = false;
 
       if( Scripting::GetEnumerationProperty< DevelActor::LayoutDirection::Type >( property, LAYOUT_DIRECTION_TABLE, LAYOUT_DIRECTION_TABLE_COUNT, direction ) )
       {
-        mInheritLayoutDirection = false;
         InheritLayoutDirectionRecursively( this, direction, true );
       }
       break;