]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetRef.cpp
* src/paragraph_funcs.cpp (breakParagraph): change parameter 'flag' to
[lyx.git] / src / insets / InsetRef.cpp
index a1c9f55e41d4a6dd97bc59bebf7f3e7e42cd7c04..49606c425bf1abbf69746ef66a395719b3ace74e 100644 (file)
@@ -82,8 +82,9 @@ docstring const InsetRef::getScreenLabel(Buffer const &) const
 int InsetRef::latex(Buffer const &, odocstream & os,
                    OutputParams const &) const
 {
-       // Don't output p_["name"], this is only used in docbook
-       InsetCommandParams p(getCmdName());
+       // We don't want to output p_["name"], since that is only used 
+       // in docbook. So we construct new params, without it, and use that.
+       InsetCommandParams p("ref", getCmdName());
        p["reference"] = getParam("reference");
        os << escape(p.getCommand());
        return 0;