* TextMetrics.cpp: Line length.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34372 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-05-05 16:23:11 +00:00
parent 4bfecb3287
commit 863e1eb35b

View File

@ -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_);
}