Add clarifying comment

This commit is contained in:
Enrico Forestieri 2017-01-20 20:30:06 +01:00
parent 4a935ed768
commit 633ad2032e
3 changed files with 2 additions and 1 deletions

BIN
po/sv.gmo

Binary file not shown.

BIN
po/uk.gmo

Binary file not shown.

View File

@ -186,7 +186,8 @@ int GuiFontMetrics::width(docstring const & s) const
#endif
/* For some reason QMetrics::width returns a wrong value with Qt5
* with some arabic text. OTOH, QTextLayout is broken for single
* characters with null width (like \not in mathed).
* characters with null width (like \not in mathed). Also, as a
* safety measure, always use QMetrics::width with our math fonts.
*/
int w = 0;
if (s.length() == 1