From 69b4da235996ecb0653c0ef73e7fba900d998288 Mon Sep 17 00:00:00 2001 From: Jeremy Messenger Date: Tue, 11 Jan 2005 02:48:09 +0000 Subject: -Add a missing dependency. [1] -Fix the build on FreeBSD 4.x. Reported by: pointyhat via kris [1] Submitted by: hrs and James Earl (maintainer) --- textproc/xmlroff/files/patch-libfo::fo-doc-gp.c | 40 +++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 textproc/xmlroff/files/patch-libfo::fo-doc-gp.c (limited to 'textproc/xmlroff/files/patch-libfo::fo-doc-gp.c') diff --git a/textproc/xmlroff/files/patch-libfo::fo-doc-gp.c b/textproc/xmlroff/files/patch-libfo::fo-doc-gp.c new file mode 100644 index 000000000000..9fedac71a901 --- /dev/null +++ b/textproc/xmlroff/files/patch-libfo::fo-doc-gp.c @@ -0,0 +1,40 @@ +--- libfo/fo-doc-gp.c.orig Mon Jan 10 13:49:31 2005 ++++ libfo/fo-doc-gp.c Mon Jan 10 13:50:19 2005 +@@ -1065,6 +1065,9 @@ + gfloat x, + gfloat y) + { ++ gfloat x1, x2, y1, y2; ++ gint line_first, line_last; ++ + g_return_if_fail (FO_IS_DOC_GP (fo_doc)); + g_return_if_fail (FO_DOC_GP (fo_doc)->context != NULL); + g_return_if_fail (FO_IS_AREA_LAYOUT (area_layout)); +@@ -1076,9 +1079,9 @@ + * lines that are to be rendered. + */ + +- gfloat y1 = y; ++ y1 = y; + +- gint line_first = fo_area_layout_get_line_first (area_layout); ++ line_first = fo_area_layout_get_line_first (area_layout); + if (line_first > 0) + { + y1 = +@@ -1086,12 +1089,12 @@ + line_first - 1); + } + +- gint line_last = fo_area_layout_get_line_last (area_layout); +- gfloat y2 = ++ line_last = fo_area_layout_get_line_last (area_layout); ++ y2 = + y1 - fo_area_layout_get_line_height (area_layout, + line_last); + +- gfloat x2 = ++ x2 = + x + fo_area_area_get_width (area_layout); + + gnome_print_gsave (FO_DOC_GP(fo_doc)->context); -- cgit v1.2.3