From 8f104a9916070fceb53aa5e3f4ad8dfecc40055d Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 24 Feb 2021 10:20:57 +0200 Subject: DocumentWidget: Expand/shrink page margin Based on the width of the document, make the horizontal margins larger or smaller. --- src/gmdocument.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gmdocument.c') diff --git a/src/gmdocument.c b/src/gmdocument.c index ae9f6d9c..e33be932 100644 --- a/src/gmdocument.c +++ b/src/gmdocument.c @@ -523,7 +523,7 @@ static void doLayout_GmDocument_(iGmDocument *d) { run.flags |= quoteBorder_GmRunFlag; } rightMargin = (type == text_GmLineType || type == bullet_GmLineType || - type == link_GmLineType || type == quote_GmLineType ? 5 : 0); + type == quote_GmLineType ? 4 : 0); iAssert(!isEmpty_Range(&runLine)); /* must have something at this point */ while (!isEmpty_Range(&runLine)) { run.bounds.pos = addX_I2(pos, indent * gap_Text); -- cgit v1.2.3