From 687ccdbb3241f26a0875dcf9906d7609a8b56ddc Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Mon, 20 Sep 2021 11:52:16 +0200 Subject: [PATCH] Complete the FontTag typeinfo --- src/tests/dummy_functions.cpp | 1 + src/tex2lyx/dummy_impl.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/tests/dummy_functions.cpp b/src/tests/dummy_functions.cpp index f57061614f..2698351602 100644 --- a/src/tests/dummy_functions.cpp +++ b/src/tests/dummy_functions.cpp @@ -54,6 +54,7 @@ namespace xml { docstring StartTag::writeTag() const { return docstring(); } docstring StartTag::writeEndTag() const { return docstring(); } bool StartTag::operator==(FontTag const & rhs) const { return rhs == *this; } + bool FontTag::operator==(StartTag const & tag) const { FontTag const * const ftag = tag.asFontTag(); if (!ftag) return false; return (font_type_ == ftag->font_type_); } } } // namespace lyx diff --git a/src/tex2lyx/dummy_impl.cpp b/src/tex2lyx/dummy_impl.cpp index 961eb9ae0d..eb445672d6 100644 --- a/src/tex2lyx/dummy_impl.cpp +++ b/src/tex2lyx/dummy_impl.cpp @@ -22,6 +22,7 @@ #include "LaTeXFeatures.h" #include "LyXRC.h" #include "output_xhtml.h" +#include "xml.h" #include "support/Messages.h" @@ -117,6 +118,7 @@ namespace xml { docstring StartTag::writeTag() const { return docstring(); } docstring StartTag::writeEndTag() const { return docstring(); } bool StartTag::operator==(FontTag const & rhs) const { return rhs == *this; } +bool FontTag::operator==(StartTag const & tag) const { FontTag const * const ftag = tag.asFontTag(); if (!ftag) return false; return (font_type_ == ftag->font_type_); } } } // namespace lyx -- 2.39.5