mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
* 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:
parent
4bfecb3287
commit
863e1eb35b
@ -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_);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user