From: Vincent van Ravesteijn Date: Wed, 5 May 2010 16:23:11 +0000 (+0000) Subject: * TextMetrics.cpp: Line length. X-Git-Tag: 2.0.0~3292 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=863e1eb35b02774280665df1755f4520253bcb55;p=features.git * TextMetrics.cpp: Line length. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34372 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index 22c834e321..566617b4b5 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -2012,14 +2012,15 @@ int TextMetrics::leftMargin(int max_width, && par.getInset(pos)->display()) && (!(tclass.isDefaultLayout(par.layout()) || tclass.isPlainLayout(par.layout())) - || buffer.params().paragraph_separation == BufferParams::ParagraphIndentSeparation) + || buffer.params().paragraph_separation + == BufferParams::ParagraphIndentSeparation) ) { - // use the parindent of the layout when the default indentation is used - // otherwise use the indentation set in the document settings + // use the parindent of the layout when the default indentation is + // used otherwise use the indentation set in the document settings if (buffer.params().getIndentation().asLyXCommand() == "default") - l_margin += theFontMetrics(buffer.params().getFont()).signedWidth( - parindent); + l_margin += theFontMetrics( + buffer.params().getFont()).signedWidth(parindent); else l_margin += buffer.params().getIndentation().inPixels(*bv_); }