]> git.lyx.org Git - lyx.git/blobdiff - src/factory.cpp
EmbeddedObjects.lyx, Math.lyx, UserGuide.lyx: Spanish translation updates by Ignacio
[lyx.git] / src / factory.cpp
index 1dbf8d3b333c860b6092dee53006f3b6b1fcf426..01e8c72652e62f901ad3387094eb0f2d4282b00b 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -320,7 +320,7 @@ Inset * createInsetHelper(Buffer & buf, FuncRequest const & cmd)
                                return 0;
                        
                        }
-                       } //end LFUN_INSET_INSERT
+               } //end LFUN_INSET_INSERT
 
                case LFUN_SPACE_INSERT: {
                        string const name = cmd.getArg(0);
@@ -495,7 +495,7 @@ Inset * readInset(Lexer & lex, Buffer const & buf)
                // can be translated to inset codes using insetCode(). And the insets'
                // write() routines should use insetName() rather than hardcoding it.
                if (tmptok == "Quotes") {
-                       inset.reset(new InsetQuotes);
+                       inset.reset(new InsetQuotes(buf));
                } else if (tmptok == "External") {
                        inset.reset(new InsetExternal(const_cast<Buffer &>(buf)));
                } else if (tmptok == "FormulaMacro") {
@@ -521,7 +521,7 @@ Inset * readInset(Lexer & lex, Buffer const & buf)
                } else if (tmptok == "space") {
                        inset.reset(new InsetSpace);
                } else if (tmptok == "Tabular") {
-                       inset.reset(new InsetTabular(buf));
+                       inset.reset(new InsetTabular(const_cast<Buffer &>(buf)));
                } else if (tmptok == "Text") {
                        inset.reset(new InsetText(buf));
                } else if (tmptok == "VSpace") {