X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2Fdummy_impl.cpp;h=9e9c3107292c563fc7286b4d3d2db4f9dc1aa10b;hb=c6b17b685a8cc0982a1544d90cdfdb6fba60a2e0;hp=6fb1a84b7611a68e0b91dc8613e54a06b90c579c;hpb=72c13323d8c2631adc23d2d23fb12d04e58d2d29;p=lyx.git diff --git a/src/tex2lyx/dummy_impl.cpp b/src/tex2lyx/dummy_impl.cpp index 6fb1a84b76..9e9c310729 100644 --- a/src/tex2lyx/dummy_impl.cpp +++ b/src/tex2lyx/dummy_impl.cpp @@ -121,6 +121,22 @@ string alignmentToCSS(LyXAlignment) 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; +} + // // Keep the linker happy on Windows //