Fix compilation

This commit is contained in:
Pavel Sanda 2020-12-06 18:37:38 +01:00
parent 3e7ccc367a
commit 2f3d0653b3

View File

@ -195,8 +195,8 @@ InsetLayout const * findInsetLayoutWithoutModule(TextClass const & tc,
if (ilay.second.latexname() == name && if (ilay.second.latexname() == name &&
(latexparam.empty() || (latexparam.empty() ||
(!ilay.second.latexparam().empty() && suffixIs(latexparam, ilay.second.latexparam()))) && (!ilay.second.latexparam().empty() && suffixIs(latexparam, ilay.second.latexparam()))) &&
((command && ilay.second.latextype() == InsetLayout::COMMAND) || ((command && ilay.second.latextype() == InsetLaTeXType::COMMAND) ||
(!command && ilay.second.latextype() == InsetLayout::ENVIRONMENT))) (!command && ilay.second.latextype() == InsetLaTeXType::ENVIRONMENT)))
return &(ilay.second); return &(ilay.second);
} }
return 0; return 0;