From 6111a6a720786bbfa68d00f5702309446dfa50dc Mon Sep 17 00:00:00 2001 From: Zhouyj Date: Mon, 22 Aug 2022 19:41:11 +0800 Subject: [PATCH] Description: fix label display error IssueNo: https://gitee.com/openharmony/graphic_ui/issues/I5NJ3N Feature or Bugfix: Bugfix Binary Source:No Signed-off-by: zhouyj --- frameworks/draw/draw_label.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/frameworks/draw/draw_label.cpp b/frameworks/draw/draw_label.cpp index 59a06b8..4a7bde3 100644 --- a/frameworks/draw/draw_label.cpp +++ b/frameworks/draw/draw_label.cpp @@ -310,6 +310,7 @@ void DrawLabel::DrawLineBackgroundColor(BufferInfo& gfxDstBuffer, uint16_t lette { uint32_t i = 0; while (i < labelLine.lineLength) { + TypedText::GetUTF8Next(labelLine.text, i, i); bool havelinebackground = false; ColorType linebackgroundColor; GetLineBackgroundColor(letterIndex, labelLine.linebackgroundColor, havelinebackground, linebackgroundColor); -- GitLab