]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBox.cpp
#7379 avoid the wrap spell check question when buffer is empty
[lyx.git] / src / insets / InsetBox.cpp
index 9999426444cbc2224d7ab5f4674c2c0dc10923a0..1273ac9e082ccdce10556ce8ddccec4e43e845b6 100644 (file)
@@ -271,7 +271,10 @@ void InsetBox::latex(otexstream & os, OutputParams const & runparams) const
                }
        }
 
-       os << "%\n";
+       os << safebreakln;
+       if (runparams.lastid != -1)
+               os.texrow().start(runparams.lastid, runparams.lastpos);
+
        // Adapt to column/text width correctly also if paragraphs indented:
        if (stdwidth)
                os << "\\noindent";