X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetText.cpp;h=f0a6c81832ffcc4ee088084fa10810b7ff3a6cb0;hb=bfddee97e191a853f0576f4fab3f095c4e9ce0de;hp=e9105080a6cbbf567163978550597ce5c0044f45;hpb=d2720fa20057237277f7d8ce3f58c6a487841fe8;p=lyx.git diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp index e9105080a6..f0a6c81832 100644 --- a/src/insets/InsetText.cpp +++ b/src/insets/InsetText.cpp @@ -391,6 +391,9 @@ void InsetText::latex(otexstream & os, OutputParams const & runparams) const os << breakln; else os << safebreakln; + if (runparams.lastid != -1) + os.texrow().start(runparams.lastid, + runparams.lastpos); os << "\\begin{" << from_utf8(il.latexname()) << "}\n"; if (!il.latexparam().empty()) os << from_utf8(il.latexparam());