Fix bug due to empty default commands.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20997 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2007-10-16 19:21:00 +00:00
parent 26fd6a1420
commit 3070a548e6

View File

@ -193,11 +193,11 @@ std::string InsetCommandParams::getDefaultCmd(std::string insetType) {
if (insetType == "bibitem")
return "bibitem";
if (insetType == "bibtex")
return "";
return "bibtex"; //this is an unused dummy
if (insetType == "citation")
return "cite";
if (insetType == "floatlist")
return "";
return "listoftables";
if (insetType == "hfill")
return "hfill";
if (insetType == "href")
@ -218,7 +218,8 @@ std::string InsetCommandParams::getDefaultCmd(std::string insetType) {
return "ref";
if (insetType == "toc")
return "tableofcontents";
return "";
BOOST_ASSERT(false);
return "";
}