Skip to content

Commit

Permalink
fix typo in variable
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Nov 6, 2022
1 parent 7cdf87c commit 4ab09a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/training/pango/stringrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ void StringRenderer::CorrectBoxPositionsToLayout(std::vector<BoxChar *> *boxchar

int StringRenderer::StripUnrenderableWords(std::string *utf8_text) const {
std::string output_text;
std::string unrendable_words;
std::string unrenderable_words;
const char *text = utf8_text->c_str();
size_t offset = 0;
int num_dropped = 0;
Expand All @@ -626,15 +626,15 @@ int StringRenderer::StripUnrenderableWords(std::string *utf8_text) const {
output_text.append(text + offset, word_len);
} else {
++num_dropped;
unrendable_words.append(text + offset, word_len);
unrendable_words.append(" ");
unrenderable_words.append(text + offset, word_len);
unrenderable_words.append(" ");
}
offset += word_len;
}
utf8_text->swap(output_text);

if (num_dropped > 0) {
tprintf("Stripped %d unrenderable word(s): '%s'\n", num_dropped, unrendable_words.c_str());
tprintf("Stripped %d unrenderable word(s): '%s'\n", num_dropped, unrenderable_words.c_str());
}
return num_dropped;
}
Expand Down

0 comments on commit 4ab09a6

Please sign in to comment.