未验证 提交 7e6a0ff0 编写于 作者: O openharmony_ci 提交者: Gitee

!929 清理告警

Merge pull request !929 from Itachi/master
......@@ -780,7 +780,7 @@ int8_t UIFontVector::LoadGlyphIntoFace(uint16_t& fontId, uint8_t fontSize, uint3
{
int32_t error;
if (IsGlyphFont(unicode) != 0) {
if (fontId > FONT_ID_MAX || fontId != GetFontId(unicode)) {
if (fontId >= FONT_ID_MAX || fontId != GetFontId(unicode)) {
return INVALID_RET_VALUE;
}
error = FT_Load_Glyph(ftFaces_[fontId], unicode & (0xFFFFFF), FT_LOAD_RENDER);
......
......@@ -20,7 +20,7 @@
#include "graphic_config.h"
#include "ui_test.h"
#if ENABLE_WINDOW
#if defined(ENABLE_WINDOW) && ENABLE_WINDOW
namespace OHOS {
class TestUIDialogButtonListener;
class TestUIDialogOnCancelListener;
......
......@@ -17,7 +17,7 @@
#define UI_TEST_VECTOR_FONT_H
#include "graphic_config.h"
#if ENABLE_VECTOR_FONT
#if defined(ENABLE_VECTOR_FONT) && ENABLE_VECTOR_FONT
#include "ui_test.h"
#include "components/ui_scroll_view.h"
#include "font/ui_font.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册