X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2Fqt_helpers.h;h=82a14383f396f51389a9b6e5a3da5272aaa548ee;hb=591d47a64b8ba894be5c793472397374d0496984;hp=1bfed02b7f188184ed1666ede58fef501278f742;hpb=f4c32de361e3b001566a466dc057e7f75f429901;p=lyx.git diff --git a/src/frontends/qt4/qt_helpers.h b/src/frontends/qt4/qt_helpers.h index 1bfed02b7f..82a14383f3 100644 --- a/src/frontends/qt4/qt_helpers.h +++ b/src/frontends/qt4/qt_helpers.h @@ -78,6 +78,11 @@ inline char_type const qchar_to_ucs4(QChar const & qchar) { } inline QChar const ucs4_to_qchar(char_type const ucs4) { + // FIXME: The following cast is not a real conversion but it work + // for the ucs2 subrange of unicode. Instead of an assertion we should + // return some special characters that indicates that its display is + // not supported. + BOOST_ASSERT(ucs4 < 65536); return QChar(static_cast(ucs4)); }