X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Frender.c;h=a91e1f7b799570aa4a29689b984fdf17af33758c;hb=d2b769f76cbbadede9bd68da7caecabd69235bfa;hp=a4fe9e24e65eae7d82b9f7fa984cca010b2dfc0e;hpb=02c2f23a15c9d7b47d17eaf6aeda216120da5374;p=pspp diff --git a/src/output/render.c b/src/output/render.c index a4fe9e24e6..a91e1f7b79 100644 --- a/src/output/render.c +++ b/src/output/render.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2009, 2010, 2011, 2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -384,7 +384,7 @@ distribute_spanned_width (int width, w += width * unspanned * d0; } - rows[x].width = w / d; + rows[x].width = MAX (rows[x].width, w / d); w -= rows[x].width * d; } } @@ -815,7 +815,7 @@ render_page_get_size (const struct render_page *page, enum table_axis axis) /* Drawing render_pages. */ -static enum render_line_style +static inline enum render_line_style get_rule (const struct render_page *page, enum table_axis axis, const int d[TABLE_N_AXES]) {