mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
26fd6a1420
commit
3070a548e6
@ -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 "";
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user