summaryrefslogtreecommitdiff
path: root/textproc/xlhtml/files/patch-xlhtml__xlhtml.c
blob: 4442c671ee7cd98be7a1b0ba29bcf724b95140f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$FreeBSD$

--- xlhtml/xlhtml.c	2002/02/27 18:10:01	1.1
+++ xlhtml/xlhtml.c	2002/02/27 18:12:58
@@ -746,8 +746,13 @@
 					ws_array[i]->ws_title.str, ws_array[i]->biggest_row, ws_array[i]->biggest_col);
 			}
 		}
-		else if (Xtract)
+		else if (Xtract) {
+			if (xr2 == HARD_MAX_ROWS)
+				xr2 = ws_array[xp]->biggest_row;
+			if (xc2 == HARD_MAX_COLS)
+				xc2 = ws_array[xp]->biggest_col;
 			OutputPartialTableAscii();
+		}
 	}
 	else
 	{