]> git.lyx.org Git - features.git/commitdiff
more ref stuff
authorAndré Pönitz <poenitz@gmx.net>
Tue, 25 Feb 2003 15:48:47 +0000 (15:48 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Tue, 25 Feb 2003 15:48:47 +0000 (15:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6259 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/math_parser.C

index b8d7da2e22fd5a887c9ff75f425468b2e67622d3..76b78dccb8cbd876851b9ab9a3da00e4302312b1 100644 (file)
@@ -963,8 +963,9 @@ void Parser::parse1(MathGridInset & grid, unsigned flags,
                        parse(cell->back().nucleus()->cell(0), FLAG_ITEM, mode);
                }
 
-               else if (t.cs() == "ref" || t.cs() == "prettyref") {
-                       cell->push_back(MathAtom(new RefInset));
+               else if (t.cs() == "ref" || t.cs() == "prettyref" || 
+                               t.cs() == "pageref" || t.cs() == "vpageref" || t.cs() == "vref") {
+                       cell->push_back(MathAtom(new RefInset(t.cs())));
                        parse(cell->back().nucleus()->cell(1), FLAG_OPTION, mode);
                        parse(cell->back().nucleus()->cell(0), FLAG_ITEM, mode);
                }