From: Stefan Schimanski Date: Mon, 10 Mar 2008 15:43:47 +0000 (+0000) Subject: * use small font for the header metrics X-Git-Tag: 1.6.10~5720 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3be96448d5f65121b4e7eda818ad871030da5934;p=features.git * use small font for the header metrics git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23640 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiToolbar.cpp b/src/frontends/qt4/GuiToolbar.cpp index 3dc4c17a10..58d39ba564 100644 --- a/src/frontends/qt4/GuiToolbar.cpp +++ b/src/frontends/qt4/GuiToolbar.cpp @@ -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;