]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloat.cpp
* InsetTabular.cpp: fix logic of multirow top/bottom line output (bug #7578)
[lyx.git] / src / insets / InsetFloat.cpp
index e3876ba1c3305597046967a17fbd53dc0f2cf434..99d6c43402dd73f7d23380eeb678f604dfa5b8da 100644 (file)
@@ -119,7 +119,7 @@ InsetFloat::InsetFloat(Buffer * buf, string params_str)
 }
 
 
-docstring InsetFloat::name() const 
+docstring InsetFloat::layoutName() const
 { 
        return "Float:" + from_utf8(params_.type);
 }
@@ -374,6 +374,8 @@ void InsetFloat::latex(otexstream & os, OutputParams const & runparams_in) const
 
        // Force \begin{<floatname>} to appear in a new line.
        os << breakln << "\\begin{" << from_ascii(tmptype) << '}';
+       if (runparams.lastid != -1)
+               os.texrow().start(runparams.lastid, runparams.lastpos);
        // We only output placement if different from the def_placement.
        // sidewaysfloats always use their own page
        if (!placement.empty() && !params_.sideways)