]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.cpp
#7379 avoid the wrap spell check question when buffer is empty
[lyx.git] / src / insets / InsetText.cpp
index 327440d37c2119cb40e207440e4d076f5fa1eeb2..f0a6c81832ffcc4ee088084fa10810b7ff3a6cb0 100644 (file)
@@ -331,10 +331,10 @@ void InsetText::fixParagraphsFont()
        ParagraphList::iterator par = paragraphs().begin();
        ParagraphList::iterator const end = paragraphs().end();
        while (par != end) {
-               if (par->isPassThru()) {
+               if (par->isPassThru())
                        par->resetFonts(font);
+               if (!par->allowParagraphCustomization())
                        par->params().clear();
-               }
                ++par;
        }
 }
@@ -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());