]> git.lyx.org Git - lyx.git/commitdiff
Fix bug due to empty default commands.
authorRichard Heck <rgheck@comcast.net>
Tue, 16 Oct 2007 19:21:00 +0000 (19:21 +0000)
committerRichard Heck <rgheck@comcast.net>
Tue, 16 Oct 2007 19:21:00 +0000 (19:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20997 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetCommandParams.cpp

index 63e0aa9353c53ae8295536a092d6b6ee51da28d9..3fd14f7a11c46e15e383ebf4bf3505b1c33cabfd 100644 (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 "";
 }