]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetcaption.C
move inset related stuff from src/graphics to src/inset/
[lyx.git] / src / insets / insetcaption.C
index de9f0e4f658a47c6bae0e96b8df17f1580bbffd5..f0417a212e650ed2e65f190cc3a577db8b199e4e 100644 (file)
@@ -16,7 +16,7 @@
 
 #include "insetcaption.h"
 #include "frontends/Painter.h"
-#include "font.h"
+#include "frontends/font_metrics.h"
 #include "BufferView.h"
 #include "FloatList.h"
 #include "insets/insetfloat.h"
@@ -89,7 +89,7 @@ void InsetCaption::draw(BufferView * bv, LyXFont const & f,
        string const label = _(fl) + " " + num + ":";
 
        Painter & pain = bv->painter();
-       int const w = lyxfont::width(label, f);
+       int const w = font_metrics::width(label, f);
        pain.text(int(x), baseline, label, f);
        x += w;