mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 14:58:36 +00:00
this is helpful together with r30582
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30583 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ace4f7d3b8
commit
7345921eb2
@ -365,12 +365,10 @@ void LaTeXFeatures::useInsetLayout(InsetLayout const & lay)
|
||||
{
|
||||
docstring const & lname = lay.name();
|
||||
DocumentClass const & tclass = params_.documentClass();
|
||||
if (!tclass.hasInsetLayout(lname)) {
|
||||
lyxerr << "LaTeXFeatures::useInsetLayout: layout `"
|
||||
<< to_utf8(lname) << "' does not exist in this class"
|
||||
<< endl;
|
||||
|
||||
// this is a default inset layout, nothing useful here
|
||||
if (!tclass.hasInsetLayout(lname))
|
||||
return;
|
||||
}
|
||||
// Is this layout already in usedInsetLayouts?
|
||||
if (find(usedInsetLayouts_.begin(), usedInsetLayouts_.end(), lname)
|
||||
!= usedInsetLayouts_.end())
|
||||
|
Loading…
Reference in New Issue
Block a user