From e5c07a21d5e3bb2b0fdbc1b1b35a1df870b87ae6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 28 Nov 2003 09:03:13 +0000 Subject: [PATCH] 10 points of RIGHT_MARGIN git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8145 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/text.C | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/text.C b/src/text.C index 19eefc2525..bc02e539ff 100644 --- a/src/text.C +++ b/src/text.C @@ -65,6 +65,8 @@ using std::string; extern int const NEST_MARGIN = 20; /// margin for changebar extern int const CHANGEBAR_MARGIN = 10; +/// right margin +extern int const RIGHT_MARGIN = 10; namespace { @@ -340,6 +342,7 @@ int LyXText::rightMargin(Paragraph const & par) const LyXTextClass const & tclass = bv()->buffer()->params().getLyXTextClass(); return + RIGHT_MARGIN + font_metrics::signedWidth(tclass.rightmargin(), tclass.defaultfont()) + font_metrics::signedWidth(par.layout()->rightmargin, -- 2.39.2