]> git.lyx.org Git - features.git/commitdiff
unbork insetinclude
authorJohn Levon <levon@movementarian.org>
Wed, 4 Dec 2002 12:07:48 +0000 (12:07 +0000)
committerJohn Levon <levon@movementarian.org>
Wed, 4 Dec 2002 12:07:48 +0000 (12:07 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5775 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetinclude.C

index cbd849f718174aae67668095477c67b7d355b914..966f0df7085742a7dddbd8265b9e21b99f13b9e7 100644 (file)
@@ -1,3 +1,7 @@
+2002-12-04  John Levon  <levon@movementarian.org>
+
+       * insetinclude.C: ressurect setting of command name
 2002-12-02  Lars Gullik Bjønnes  <larsbj@gullik.net>
 
        * insetquotes.C (dispString): disambiguate insert call
index 4aea2aee1b4185f4ebfecc18bbc529974e326c64..3a372a40be9b61edf9e044d3c44ac0a32d1faa02 100644 (file)
@@ -139,6 +139,25 @@ void InsetInclude::set(Params const & p)
 {
        params_ = p;
 
+       string command;
+       switch (params_.flag) {
+               case INCLUDE:
+                       command="include";
+                       break;
+               case VERB:
+                       command="verbatiminput";
+                       break;
+               case INPUT:
+                       command="input";
+                       break;
+               case VERBAST:
+                       command="verbatiminput*";
+                       break;
+       }
+       params_.cparams.setCmdName(command); 
        if (preview_->monitoring())
                preview_->stopMonitoring();