提交 e7a7a85b 编写于 作者: W wangtiantian

IssueNo:https://gitee.com/openharmony/graphic_ui/issues/I4DQ8P

Description:add nullptr judgment
Sig:graphic
Feature or Bugfix:Bugfix
Binary Source:No
Signed-off-by: Nwangtiantian <wangtiantian19@huawei.com>
上级 95fc398e
......@@ -25,6 +25,9 @@
namespace OHOS {
void DrawLabel::DrawTextOneLine(BufferInfo& gfxDstBuffer, const LabelLineInfo& labelLine)
{
if (labelLine.text == nullptr) {
return;
}
UIFont* fontEngine = UIFont::GetInstance();
if (labelLine.direct == TEXT_DIRECT_RTL) {
labelLine.pos.x -= labelLine.offset.x;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册