From: Bowon Ryu Date: Wed, 28 Sep 2022 04:07:47 +0000 (+0900) Subject: Do not clear ColorRuns in SetDefaultColor X-Git-Tag: dali_2.1.42~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9a52d829f1a7af888ce61e51e12f5919e5443e4;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git 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 --- 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(); }