Fix tex2lyx linker error on windows

The FontMetrics dummy class was in the wrong namespace. Linking on linux
did work because the GNU linker is more clever than the MSVC linker for this
particular example and throws out more unused code, so that theFontMetrics was
not referenced at all.
This commit is contained in:
Georg Baum 2015-04-08 22:04:13 +02:00
parent ab3c5ba59d
commit d4718b18b6

View File

@ -125,15 +125,16 @@ string alignmentToCSS(LyXAlignment)
// Dummy FontMetrics (needed by Length) // Dummy FontMetrics (needed by Length)
// //
namespace frontend {
class FontMetrics { class FontMetrics {
int em() const { return 0; }; int em() const { return 0; };
}; };
}
class FontInfo; class FontInfo;
FontMetrics const & theFontMetrics(FontInfo const &) { frontend::FontMetrics const & theFontMetrics(FontInfo const &) {
static FontMetrics dummy; static frontend::FontMetrics dummy;
return dummy; return dummy;
} }