]> git.lyx.org Git - lyx.git/blobdiff - src/factory.cpp
Allow automatic text direction in Painter::text()
[lyx.git] / src / factory.cpp
index bf25fbd43ea5d158a053513d4cacbadd8150066c..b8d94336b9f74294f14d61161e360294a9251d23 100644 (file)
@@ -107,6 +107,8 @@ Inset * createInsetHelper(Buffer * buf, FuncRequest const & cmd)
                                inp.kind = InsetSeparatorParams::PLAIN;
                        else if (name == "parbreak")
                                inp.kind = InsetSeparatorParams::PARBREAK;
+                       else if (name == "latexpar")
+                               inp.kind = InsetSeparatorParams::LATEXPAR;
                        else {
                                lyxerr << "Wrong argument for LyX function 'separator-insert'." << endl;
                                break;
@@ -538,7 +540,7 @@ Inset * readInset(Lexer & lex, Buffer * buf)
                //Worst case, we could put it in each case below. Better, we could
                //pass the lexer to the constructor and let the params be built there.
                InsetCommandParams inscmd(code);
-               inscmd.read(lex, buf);
+               inscmd.Read(lex, buf);
 
                switch (code) {
                        case BIBITEM_CODE: