Skip to content

Commit

Permalink
feat(ohos): fix OH_Drawing_TypographyDidExceedMaxLines
Browse files Browse the repository at this point in the history
  • Loading branch information
sohotz committed Aug 9, 2024
1 parent a8168e9 commit 39689fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ohos/oh_napi/src/oh_measure_text.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 39689fe

Please sign in to comment.