Fix TextEditor setting color issues by clearing color runs 93/215193/1
authorJiyun Yang <ji.yang@samsung.com>
Wed, 2 Oct 2019 09:41:44 +0000 (18:41 +0900)
committerJiyun Yang <ji.yang@samsung.com>
Wed, 2 Oct 2019 09:41:44 +0000 (18:41 +0900)
Change-Id: If7f04cc080a319745603eef87f72423006f45ec9
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
dali-toolkit/internal/text/text-controller.cpp

index 2f3306b..fee1690 100755 (executable)
@@ -1243,6 +1243,10 @@ void Controller::SetDefaultColor( const Vector4& color )
   {
     mImpl->mModel->mVisualModel->SetTextColor( color );
 
+    mImpl->mModel->mLogicalModel->mColorRuns.Clear();
+
+    mImpl->mOperationsPending = static_cast<OperationsMask>( mImpl->mOperationsPending | COLOR );
+
     mImpl->RequestRelayout();
   }
 }