summaryrefslogtreecommitdiff
path: root/gui/sheet.c
diff options
context:
space:
mode:
Diffstat (limited to 'gui/sheet.c')
-rw-r--r--gui/sheet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/sheet.c b/gui/sheet.c
index d7e6fe6..a09efec 100644
--- a/gui/sheet.c
+++ b/gui/sheet.c
@@ -130,7 +130,7 @@ void zoom_to_extents(struct gui *gui)
gui->y = h / 2;
gtk_widget_get_allocation(gui->da, &alloc);
-
+
sw = w ? (float) ZOOM_MARGIN * alloc.width / w : 1;
sh = h ? (float) ZOOM_MARGIN * alloc.height / h : 1;
gui->scale = sw < sh ? sw : sh;