X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTextMetrics.cpp;h=fd576c31b2a254a460999dddede9be56606a9b37;hb=2d7cf039351fba0d91746dce8cbf1f9e31cdc224;hp=6c3197cfbc72bbd39b16886112679d29b8497362;hpb=c981018111b0fc9d15f3c23d9cbfa8750e214a80;p=lyx.git diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index 6c3197cfbc..fd576c31b2 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -313,6 +313,9 @@ bool TextMetrics::isRTLBoundary(pit_type pit, pos_type pos) const } +// isRTLBoundary returns false on a real end-of-line boundary, +// because otherwise the two boundary types get mixed up. +// This is the whole purpose of this being in TextMetrics. bool TextMetrics::isRTLBoundary(pit_type pit, pos_type pos, Font const & font) const { @@ -1989,7 +1992,7 @@ int TextMetrics::leftMargin(int max_width, || (layout.labeltype == LABEL_STATIC && layout.latextype == LATEX_ENVIRONMENT && !text_->isFirstInSequence(pit))) - && align == LYX_ALIGN_BLOCK + && (align == LYX_ALIGN_BLOCK || align == LYX_ALIGN_LEFT) && !par.params().noindent() // in some insets, paragraphs are never indented && !text_->inset().neverIndent()