Skip to content

Commit

Permalink
Fix Tencent#38, the text was not displayed when the text contained space
Browse files Browse the repository at this point in the history
  • Loading branch information
akanchi committed Jan 18, 2022
1 parent 0a4ea94 commit f022a27
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tgfx/src/raster/TextBlob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,9 @@ bool TextBlob::getPath(Path* path, const Stroke* stroke) const {
}
glyphPath.transform(Matrix::MakeTrans(position.x, position.y));
totalPath.addPath(glyphPath);
} else {
return false;
}
}
*path = totalPath;
return true;
return !totalPath.isEmpty();
}
} // namespace pag

0 comments on commit f022a27

Please sign in to comment.