]> git.lyx.org Git - lyx.git/blobdiff - src/Paragraph.cpp
PDF-form.lyx: add a note
[lyx.git] / src / Paragraph.cpp
index da4dccf3f4f40307f22c53a270b9d33e356e2bb8..a69169c41e3773f711297e982ac2949c2b8a4f16 100644 (file)
@@ -2138,8 +2138,12 @@ int Paragraph::Private::startTeXParParams(BufferParams const & bparams,
 {
        int column = 0;
 
-       if (params_.noindent() && !layout_->pass_thru
-           && (layout_->toggle_indent != ITOGGLE_NEVER)) {
+       bool canindent =
+               (bparams.paragraph_separation == BufferParams::ParagraphIndentSeparation) ?
+                       (layout_->toggle_indent != ITOGGLE_NEVER) :
+                       (layout_->toggle_indent == ITOGGLE_ALWAYS);
+
+       if (canindent && params_.noindent() && !layout_->pass_thru) {
                os << "\\noindent ";
                column += 10;
        }