summaryrefslogtreecommitdiff
path: root/src/gmdocument.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-02-24 10:20:57 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-02-24 10:20:57 +0200
commit8f104a9916070fceb53aa5e3f4ad8dfecc40055d (patch)
treef846818c2b13ede9630e98b35f9b2842160d71c3 /src/gmdocument.c
parentec826e393ad5feba5960662a75b62adafc7b6673 (diff)
DocumentWidget: Expand/shrink page margin
Based on the width of the document, make the horizontal margins larger or smaller.
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r--src/gmdocument.c2
1 files changed, 1 insertions, 1 deletions
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) {
523 run.flags |= quoteBorder_GmRunFlag; 523 run.flags |= quoteBorder_GmRunFlag;
524 } 524 }
525 rightMargin = (type == text_GmLineType || type == bullet_GmLineType || 525 rightMargin = (type == text_GmLineType || type == bullet_GmLineType ||
526 type == link_GmLineType || type == quote_GmLineType ? 5 : 0); 526 type == quote_GmLineType ? 4 : 0);
527 iAssert(!isEmpty_Range(&runLine)); /* must have something at this point */ 527 iAssert(!isEmpty_Range(&runLine)); /* must have something at this point */
528 while (!isEmpty_Range(&runLine)) { 528 while (!isEmpty_Range(&runLine)) {
529 run.bounds.pos = addX_I2(pos, indent * gap_Text); 529 run.bounds.pos = addX_I2(pos, indent * gap_Text);