summaryrefslogtreecommitdiff
path: root/src/gmdocument.c
diff options
context:
space:
mode:
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 4a3f8e06..15d81603 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -448,7 +448,7 @@ static void doLayout_GmDocument_(iGmDocument *d) {
448 if (width_Rect(run.visBounds) > maxSize.x) { 448 if (width_Rect(run.visBounds) > maxSize.x) {
449 /* Don't scale the image up. */ 449 /* Don't scale the image up. */
450 run.visBounds.size.y = run.visBounds.size.y * maxSize.x / width_Rect(run.visBounds); 450 run.visBounds.size.y = run.visBounds.size.y * maxSize.x / width_Rect(run.visBounds);
451 run.visBounds.size.x = img->size.x; 451 run.visBounds.size.x = maxSize.x;
452 run.visBounds.pos.x = run.bounds.size.x / 2 - width_Rect(run.visBounds) / 2; 452 run.visBounds.pos.x = run.bounds.size.x / 2 - width_Rect(run.visBounds) / 2;
453 run.bounds.size.y = run.visBounds.size.y; 453 run.bounds.size.y = run.visBounds.size.y;
454 } 454 }