]> git.lyx.org Git - features.git/commitdiff
* TextMetrics.cpp: Line length.
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 5 May 2010 16:23:11 +0000 (16:23 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 5 May 2010 16:23:11 +0000 (16:23 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34372 a592a061-630c-0410-9148-cb99ea01b6c8

src/TextMetrics.cpp

index 22c834e32117716c31d25e95a0e932c826afd92e..566617b4b5d5123294fbcccf305f55ba8496ad5a 100644 (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_);
                }