Merge "GetLineCount() after GetTextDirection() returns wrong value." into devel/master
authorjoogab yun <joogab.yun@samsung.com>
Mon, 2 Dec 2019 01:20:09 +0000 (01:20 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Mon, 2 Dec 2019 01:20:09 +0000 (01:20 +0000)
dali-toolkit/internal/text/text-controller.cpp

index c017039..a3d77d4 100755 (executable)
@@ -2454,6 +2454,9 @@ Toolkit::DevelText::TextDirection::Type Controller::GetTextDirection()
     // Clear the update info. This info will be set the next time the text is updated.
     mImpl->mTextUpdateInfo.Clear();
 
+    // FullRelayoutNeeded should be true because DoRelayout is MAX_FLOAT, MAX_FLOAT.
+    mImpl->mTextUpdateInfo.mFullRelayoutNeeded = true;
+
     mImpl->mUpdateTextDirection = false;
   }