Fix color of \Omega.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19609 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-08-16 16:35:38 +00:00
parent 412e3b8052
commit 5a82011b90

View File

@ -287,6 +287,7 @@ int QLPainter::text(int x, int y, docstring const & s,
// occurs at a line-break. As a kludge, we force Qt to // occurs at a line-break. As a kludge, we force Qt to
// render this glyph using a one-column line. // render this glyph using a one-column line.
if (s.size() == 1 && str[0].unicode() == 0x00ad) { if (s.size() == 1 && str[0].unicode() == 0x00ad) {
setQPainterPen(f.realColor());
QTextLayout adsymbol(str); QTextLayout adsymbol(str);
adsymbol.setFont(fi.font); adsymbol.setFont(fi.font);
adsymbol.beginLayout(); adsymbol.beginLayout();