mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
ab3c5ba59d
commit
d4718b18b6
@ -125,15 +125,16 @@ string alignmentToCSS(LyXAlignment)
|
||||
// Dummy FontMetrics (needed by Length)
|
||||
//
|
||||
|
||||
|
||||
namespace frontend {
|
||||
class FontMetrics {
|
||||
int em() const { return 0; };
|
||||
};
|
||||
}
|
||||
|
||||
class FontInfo;
|
||||
|
||||
FontMetrics const & theFontMetrics(FontInfo const &) {
|
||||
static FontMetrics dummy;
|
||||
frontend::FontMetrics const & theFontMetrics(FontInfo const &) {
|
||||
static frontend::FontMetrics dummy;
|
||||
return dummy;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user