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);