]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/tex2lyx.cpp
Capitalize labels of floats, etc. Fixes #11993.
[lyx.git] / src / tex2lyx / tex2lyx.cpp
index 810567c71609baa1c43449a81c1043f56ac55388..1b11a45ba43515be484b18605ed84d177ee5b366 100644 (file)
@@ -22,7 +22,6 @@
 #include "LayoutModuleList.h"
 #include "ModuleList.h"
 #include "Preamble.h"
-#include "TextClass.h"
 
 #include "support/ConsoleApplication.h"
 #include "support/convert.h"
@@ -196,8 +195,8 @@ InsetLayout const * findInsetLayoutWithoutModule(TextClass const & tc,
                if (ilay.second.latexname() == name &&
                    (latexparam.empty() ||
                     (!ilay.second.latexparam().empty() && suffixIs(latexparam, ilay.second.latexparam()))) &&
-                   ((command && ilay.second.latextype() == InsetLayout::COMMAND) ||
-                    (!command && ilay.second.latextype() == InsetLayout::ENVIRONMENT)))
+                   ((command && ilay.second.latextype() == InsetLaTeXType::COMMAND) ||
+                    (!command && ilay.second.latextype() == InsetLaTeXType::ENVIRONMENT)))
                        return &(ilay.second);
        }
        return 0;