1
0
Fork 0

Codefix: Debug fmt strings in ItemizeBidi (ICU layout) (#12965)

pull/12978/head
Jonathan G Rennison 2024-10-01 14:28:40 +01:00 committed by GitHub
parent ccced859f5
commit 22b4a77e37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -256,14 +256,14 @@ std::vector<ICURun> ItemizeBidi(UChar *buff, size_t length)
UErrorCode err = U_ZERO_ERROR;
ubidi_setPara(ubidi, buff, length, parLevel, nullptr, &err);
if (U_FAILURE(err)) {
Debug(fontcache, 0, "Failed to set paragraph: %s", u_errorName(err));
Debug(fontcache, 0, "Failed to set paragraph: {}", u_errorName(err));
ubidi_close(ubidi);
return std::vector<ICURun>();
}
int32_t count = ubidi_countRuns(ubidi, &err);
if (U_FAILURE(err)) {
Debug(fontcache, 0, "Failed to count runs: %s", u_errorName(err));
Debug(fontcache, 0, "Failed to count runs: {}", u_errorName(err));
ubidi_close(ubidi);
return std::vector<ICURun>();
}