From 7e8209f6a765af5276ad1c60d2cbbf039eae9c36 Mon Sep 17 00:00:00 2001 From: wangtiantian Date: Thu, 11 Nov 2021 17:22:41 +0800 Subject: [PATCH] IssueNo:https://gitee.com/openharmony/graphic_ui/issues/I4HW9T Description:fix bug Sig:graphic Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: wangtiantian --- frameworks/font/glyphs_manager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frameworks/font/glyphs_manager.cpp b/frameworks/font/glyphs_manager.cpp index 079986f..212b244 100755 --- a/frameworks/font/glyphs_manager.cpp +++ b/frameworks/font/glyphs_manager.cpp @@ -135,8 +135,7 @@ GlyphNode* GlyphsManager::GetNodeFromFile(uint32_t unicode, uint8_t fontId) uint8_t* tmpIndexCache = curIndexCache_; uint32_t tmpGlyphNodeSectionStart = curGlyphNodeSectionStart_; while (fontId_ != fontId) { - SetCurrentFontId(fontId); - if (!isFontIdSet_) { + if (SetCurrentFontId(fontId) == INVALID_RET_VALUE) { return nullptr; } tmpIndexCache = curIndexCache_; -- GitLab