* use small font for the header metrics

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23640 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2008-03-10 15:43:47 +00:00
parent 3e8e012355
commit 3be96448d5

View File

@ -415,7 +415,7 @@ private:
// draw the centered text
QFontMetrics fm(font);
int w = opt.fontMetrics.width(category);
int w = fm.width(category);
int x = opt.rect.x() + (opt.rect.width() - w) / 2;
int y = opt.rect.y() + fm.ascent();
int left = x;