Do not clear ColorRuns in SetDefaultColor 87/282187/1
authorBowon Ryu <bowon.ryu@samsung.com>
Wed, 28 Sep 2022 04:07:47 +0000 (13:07 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Wed, 28 Sep 2022 04:29:55 +0000 (13:29 +0900)
There is an issue that the markup color is cleared when setting the TextColor property.
This patch guarantees markup color.

Change-Id: Ibec47ca4b956709def4216e203ccbc8a7d829397
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
dali-toolkit/internal/text/controller/text-controller-impl.cpp

index e5086d6..8b6d8cb 100644 (file)
@@ -1917,7 +1917,6 @@ void Controller::Impl::SetDefaultColor(const Vector4& color)
   if(!IsShowingPlaceholderText())
   {
     mModel->mVisualModel->SetTextColor(color);
-    mModel->mLogicalModel->mColorRuns.Clear();
     mOperationsPending = static_cast<OperationsMask>(mOperationsPending | COLOR);
     RequestRelayout();
   }