From 27844f580e8774d429afb8dce60d80b60911aa7f Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Fri, 27 Mar 2015 10:53:12 +0100 Subject: [PATCH] Expand dummy_functions.cpp with needed class for check_ExternalTransforms. --- src/tests/dummy_functions.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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; + } + }