]> git.lyx.org Git - lyx.git/commitdiff
Expand dummy_functions.cpp with needed class for check_ExternalTransforms.
authorKornel Benko <kornel@lyx.org>
Fri, 27 Mar 2015 09:53:12 +0000 (10:53 +0100)
committerKornel Benko <kornel@lyx.org>
Fri, 27 Mar 2015 09:53:12 +0000 (10:53 +0100)
src/tests/dummy_functions.cpp

index ce4261c00ae1eb98071c75a69db0f6da9fa239e1..9d4298b5263e617d01a8e156afd880dafbd217fc 100644 (file)
@@ -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;
+       }
+
 }