summaryrefslogtreecommitdiff
path: root/cad/gschem/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'cad/gschem/patches/patch-aa')
-rw-r--r--cad/gschem/patches/patch-aa21
1 files changed, 21 insertions, 0 deletions
diff --git a/cad/gschem/patches/patch-aa b/cad/gschem/patches/patch-aa
new file mode 100644
index 00000000000..9efef902cc4
--- /dev/null
+++ b/cad/gschem/patches/patch-aa
@@ -0,0 +1,21 @@
+$NetBSD: patch-aa,v 1.9 2006/02/06 22:23:29 dmcmahill Exp $
+
+--- src/x_image.c.orig 2006-01-24 03:24:02.000000000 +0000
++++ src/x_image.c
+@@ -205,6 +205,7 @@ void x_image_lowlevel(TOPLEVEL * w_curre
+ GdkPixbuf *pixbuf;
+ char *filetype;
+ #endif
++ float prop;
+
+ width = w_current->image_width;
+ height = w_current->image_height;
+@@ -227,7 +228,7 @@ void x_image_lowlevel(TOPLEVEL * w_curre
+ page_center_top = save_page_top + (page_height / 2);
+
+ /* Preserve proportions */
+- float prop = (float) width / height;
++ prop = (float) width / height;
+ if (page_width > page_height) {
+ page_height = (page_width / prop);
+ } else {