Mercurial > hg > orthanc-stone
changeset 2242:266b0b912c35 default tip
fix build
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Jul 2025 12:55:20 +0200 (5 weeks ago) |
parents | 4cb5be924923 |
children | |
files | OrthancStone/Sources/Fonts/GlyphAlphabet.cpp |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancStone/Sources/Fonts/GlyphAlphabet.cpp Sat May 31 09:25:47 2025 +0200 +++ b/OrthancStone/Sources/Fonts/GlyphAlphabet.cpp Wed Jul 09 12:55:20 2025 +0200 @@ -113,7 +113,12 @@ character.resize(1); character[0] = static_cast<unsigned char>(index); +#if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 12, 9) + std::string utf8 = Orthanc::Toolbox::ConvertToUtf8(character, encoding, false /* no code extensions */, + false /* don't skip backslashes */); +#else std::string utf8 = Orthanc::Toolbox::ConvertToUtf8(character, encoding, false /* no code extensions */); +#endif if (utf8.empty()) {