Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,9 @@ - (LinesMeasurements)getLinesForAttributedString:(facebook::react::AttributedStr
.width = usedRect.size.width, .height = usedRect.size.height}};

CGFloat baseline = [layoutManager locationForGlyphAtIndex:range.location].y;
const char *renderedUTF8 = [renderedString UTF8String];
auto line = LineMeasurement{
std::string(
[renderedString UTF8String] != nullptr ? [renderedString UTF8String] : ""),
std::string(renderedUTF8 != nullptr ? renderedUTF8 : ""),
rect,
overallRect.size.height - baseline,
font.capHeight,
Expand Down
Loading