Revert "[Tizen] Check window validity"
authorTaehyub Kim <taehyub.kim@samsung.com>
Tue, 3 May 2022 08:16:33 +0000 (17:16 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Tue, 3 May 2022 08:16:33 +0000 (17:16 +0900)
This reverts commit a774d5e1eb28c6a6899e62c05751156a21c2189d.

dali-toolkit/internal/text/text-controller-impl.cpp

index 47877c4..46d83dd 100644 (file)
@@ -540,8 +540,7 @@ Dali::LayoutDirection::Type Controller::Impl::GetLayoutDirection(Dali::Actor& ac
   if(mModel->mMatchLayoutDirection == DevelText::MatchLayoutDirection::LOCALE ||
      (mModel->mMatchLayoutDirection == DevelText::MatchLayoutDirection::INHERIT && !mIsLayoutDirectionChanged))
   {
-    Window window = DevelWindow::Get(actor);
-    return static_cast<Dali::LayoutDirection::Type>(window ? window.GetRootLayer().GetProperty(Dali::Actor::Property::LAYOUT_DIRECTION).Get<int>() : LayoutDirection::LEFT_TO_RIGHT);
+    return static_cast<Dali::LayoutDirection::Type>(DevelWindow::Get(actor).GetRootLayer().GetProperty(Dali::Actor::Property::LAYOUT_DIRECTION).Get<int>());
   }
   else
   {