Skip to content

Commit 2c044df

Browse files
committed
Fix wrong x_fsize in hOCR output (regression)
The regression was caused by the latest commit c9e85ab. Signed-off-by: Stefan Weil <[email protected]>
1 parent ad40131 commit 2c044df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ccmain/ltrresultiterator.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ const char* LTRResultIterator::WordFontAttributes(bool* is_bold,
173173
int* font_id) const {
174174
const char* result = nullptr;
175175

176-
if (it_->word()) {
176+
if (it_->word() == nullptr) {
177177
// Already at the end!
178178
*pointsize = 0;
179179
} else {

0 commit comments

Comments
 (0)