]> git.lyx.org Git - lyx.git/blobdiff - src/tests/dummy_functions.cpp
Fix bug #8782: We need to query the cell, not just the inset.
[lyx.git] / src / tests / dummy_functions.cpp
index ce4261c00ae1eb98071c75a69db0f6da9fa239e1..2ee622e8e50230d0638f371431fca66487877f10 100644 (file)
@@ -35,4 +35,22 @@ namespace lyx {
                return string();
        }
 
+       //
+       // Dummy FontMetrics (needed by Length)
+       //
+
+
+       namespace frontend {
+       class FontMetrics {
+               int em() const { return 0; };
+       };
+       }
+
+       class FontInfo;
+
+       frontend::FontMetrics const & theFontMetrics(FontInfo const &) {
+               static frontend::FontMetrics dummy;
+               return dummy;
+       }
+
 }