]> git.lyx.org Git - features.git/commitdiff
* use small font for the header metrics
authorStefan Schimanski <sts@lyx.org>
Mon, 10 Mar 2008 15:43:47 +0000 (15:43 +0000)
committerStefan Schimanski <sts@lyx.org>
Mon, 10 Mar 2008 15:43:47 +0000 (15:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23640 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiToolbar.cpp

index 3dc4c17a10494ff5774e64c7d56de3a3fabbabef..58d39ba5642bb538ab351cad7f9264606779c05b 100644 (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;