diff --git a/src/tests/dummy_functions.cpp b/src/tests/dummy_functions.cpp index ce4261c00a..9d4298b526 100644 --- a/src/tests/dummy_functions.cpp +++ b/src/tests/dummy_functions.cpp @@ -35,4 +35,20 @@ namespace lyx { return string(); } + // + // Dummy FontMetrics (needed by Length) + // + + + class FontMetrics { + int em() const { return 0; }; + }; + + class FontInfo; + + FontMetrics const & theFontMetrics(FontInfo const &) { + static FontMetrics dummy; + return dummy; + } + }