Do a little better here.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23514 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-03-06 18:21:08 +00:00
parent af6e88250a
commit 89d82d37f4

View File

@ -240,8 +240,9 @@ LayoutFileIndex defaultBaseclass()
{
if (BaseClassList::get().haveClass("article"))
return string("article");
else
if (BaseClassList::get().empty())
return string("");
return BaseClassList::get().classList().front();
}