From 3070a548e6c7f1cceeb408a107e8118a9923666d Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Tue, 16 Oct 2007 19:21:00 +0000 Subject: [PATCH] Fix bug due to empty default commands. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20997 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetCommandParams.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/insets/InsetCommandParams.cpp b/src/insets/InsetCommandParams.cpp index 63e0aa9353..3fd14f7a11 100644 --- a/src/insets/InsetCommandParams.cpp +++ b/src/insets/InsetCommandParams.cpp @@ -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 ""; } -- 2.39.5