From 39689fe2245320832b3a6c7ed861f90e65876789 Mon Sep 17 00:00:00 2001 From: sohotz Date: Fri, 9 Aug 2024 15:33:14 +0800 Subject: [PATCH] feat(ohos): fix OH_Drawing_TypographyDidExceedMaxLines --- modules/ohos/oh_napi/src/oh_measure_text.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ohos/oh_napi/src/oh_measure_text.cc b/modules/ohos/oh_napi/src/oh_measure_text.cc index 628b263132f..8d53dc36c63 100644 --- a/modules/ohos/oh_napi/src/oh_measure_text.cc +++ b/modules/ohos/oh_napi/src/oh_measure_text.cc @@ -416,7 +416,7 @@ OhMeasureResult OhMeasureText::EndMeasure(int width, int widthMode, int height, double realHeight = CalcSpanPostion(typography, ret); ret.height = fmax(ret.height, realHeight); - ret.isEllipsized = OH_Drawing_TypographyIsEllipsized(typoStyle_); + ret.isEllipsized = OH_Drawing_TypographyDidExceedMaxLines(typography); OH_Drawing_DestroyTypography(typography);