]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetFloat.cpp
#7379 avoid the wrap spell check question when buffer is empty
[lyx.git] / src / insets / InsetFloat.cpp
index e3876ba1c3305597046967a17fbd53dc0f2cf434..a1bddb0a22f0ac0d228a60466f7f48a5f0b580fb 100644 (file)
@@ -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)