From e9a52d829f1a7af888ce61e51e12f5919e5443e4 Mon Sep 17 00:00:00 2001 From: Bowon Ryu Date: Wed, 28 Sep 2022 13:07:47 +0900 Subject: [PATCH] Do not clear ColorRuns in SetDefaultColor 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 --- dali-toolkit/internal/text/controller/text-controller-impl.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/dali-toolkit/internal/text/controller/text-controller-impl.cpp b/dali-toolkit/internal/text/controller/text-controller-impl.cpp index e5086d6..8b6d8cb 100644 --- a/dali-toolkit/internal/text/controller/text-controller-impl.cpp +++ b/dali-toolkit/internal/text/controller/text-controller-impl.cpp @@ -1917,7 +1917,6 @@ void Controller::Impl::SetDefaultColor(const Vector4& color) if(!IsShowingPlaceholderText()) { mModel->mVisualModel->SetTextColor(color); - mModel->mLogicalModel->mColorRuns.Clear(); mOperationsPending = static_cast(mOperationsPending | COLOR); RequestRelayout(); } -- 2.7.4