I wonder if the attached patch fixes a lot of cut'n'paste bugs.
If not, I do not understand the longtabular stuff at all.

Please have a look.

Thanks,
J�rgen.
Index: src/frontends/xforms/FormTabular.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/frontends/xforms/FormTabular.C,v
retrieving revision 1.60
diff -u -r1.60 FormTabular.C
--- src/frontends/xforms/FormTabular.C	2002/11/15 02:44:20	1.60
+++ src/frontends/xforms/FormTabular.C	2002/11/25 20:20:15
@@ -368,14 +368,14 @@
 		if (ltt.set) {
 			fl_set_button(longtable_options_->check_head_2border_above,
 				      ltt.topDL);
-			fl_set_button(longtable_options_->check_head_2border_above,
-				      ltt.topDL);
+			fl_set_button(longtable_options_->check_head_2border_below,
+				      ltt.bottomDL);
 			use_empty = true;
 		} else {
 			setEnabled(longtable_options_->check_head_2border_above, 0);
 			setEnabled(longtable_options_->check_head_2border_below, 0);
-			fl_set_button(longtable_options_->check_head_2border_above,0);
 			fl_set_button(longtable_options_->check_head_2border_above,0);
+			fl_set_button(longtable_options_->check_head_2border_below,0);
 			fl_set_button(longtable_options_->check_1head_empty,0);
 			setEnabled(longtable_options_->check_1head_empty, 0);
 			use_empty = false;
@@ -385,14 +385,14 @@
 		fl_set_button(longtable_options_->check_lt_firsthead, row_set);
 		if (ltt.set && (!ltt.empty || !use_empty)) {
 			fl_set_button(longtable_options_->check_1head_2border_above,
-				      ltt.topDL);
-			fl_set_button(longtable_options_->check_1head_2border_above,
 				      ltt.topDL);
+			fl_set_button(longtable_options_->check_1head_2border_below,
+				      ltt.bottomDL);
 		} else {
 			setEnabled(longtable_options_->check_1head_2border_above, 0);
 			setEnabled(longtable_options_->check_1head_2border_below, 0);
 			fl_set_button(longtable_options_->check_1head_2border_above,0);
-			fl_set_button(longtable_options_->check_1head_2border_above,0);
+			fl_set_button(longtable_options_->check_1head_2border_below,0);
 			if (use_empty) {
 				fl_set_button(longtable_options_->check_1head_empty,ltt.empty);
 				if (ltt.empty)
@@ -404,15 +404,15 @@
 		fl_set_button(longtable_options_->check_lt_foot, row_set);
 		if (ltt.set) {
 			fl_set_button(longtable_options_->check_foot_2border_above,
-				      ltt.topDL);
-			fl_set_button(longtable_options_->check_foot_2border_above,
 				      ltt.topDL);
+			fl_set_button(longtable_options_->check_foot_2border_below,
+				      ltt.bottomDL);
 			use_empty = true;
 		} else {
 			setEnabled(longtable_options_->check_foot_2border_above, 0);
 			setEnabled(longtable_options_->check_foot_2border_below, 0);
-			fl_set_button(longtable_options_->check_foot_2border_above,0);
 			fl_set_button(longtable_options_->check_foot_2border_above,0);
+			fl_set_button(longtable_options_->check_foot_2border_below,0);
 			fl_set_button(longtable_options_->check_lastfoot_empty, 0);
 			setEnabled(longtable_options_->check_lastfoot_empty, 0);
 			use_empty = false;
@@ -423,13 +423,13 @@
 		if (ltt.set && (!ltt.empty || !use_empty)) {
 			fl_set_button(longtable_options_->check_lastfoot_2border_above,
 				      ltt.topDL);
-			fl_set_button(longtable_options_->check_lastfoot_2border_above,
-				      ltt.topDL);
+			fl_set_button(longtable_options_->check_lastfoot_2border_below,
+				      ltt.bottomDL);
 		} else {
 			setEnabled(longtable_options_->check_lastfoot_2border_above,0);
 			setEnabled(longtable_options_->check_lastfoot_2border_below,0);
 			fl_set_button(longtable_options_->check_lastfoot_2border_above, 0);
-			fl_set_button(longtable_options_->check_lastfoot_2border_above, 0);
+			fl_set_button(longtable_options_->check_lastfoot_2border_below, 0);
 			if (use_empty) {
 				fl_set_button(longtable_options_->check_lastfoot_empty,
 					      ltt.empty);
@@ -441,18 +441,18 @@
 			      tabular->GetLTNewPage(row));
 	} else {
 		fl_set_button(longtable_options_->check_lt_firsthead, 0);
-		fl_set_button(longtable_options_->check_1head_2border_above, 0);
 		fl_set_button(longtable_options_->check_1head_2border_above, 0);
+		fl_set_button(longtable_options_->check_1head_2border_below, 0);
 		fl_set_button(longtable_options_->check_1head_empty, 0);
 		fl_set_button(longtable_options_->check_lt_head, 0);
 		fl_set_button(longtable_options_->check_head_2border_above, 0);
-		fl_set_button(longtable_options_->check_head_2border_above, 0);
+		fl_set_button(longtable_options_->check_head_2border_below, 0);
 		fl_set_button(longtable_options_->check_lt_foot, 0);
-		fl_set_button(longtable_options_->check_foot_2border_above, 0);
 		fl_set_button(longtable_options_->check_foot_2border_above, 0);
+		fl_set_button(longtable_options_->check_foot_2border_below, 0);
 		fl_set_button(longtable_options_->check_lt_lastfoot, 0);
-		fl_set_button(longtable_options_->check_lastfoot_2border_above, 0);
 		fl_set_button(longtable_options_->check_lastfoot_2border_above, 0);
+		fl_set_button(longtable_options_->check_lastfoot_2border_below, 0);
 		fl_set_button(longtable_options_->check_lastfoot_empty, 0);
 		fl_set_button(longtable_options_->check_lt_newpage, 0);
 	}

Reply via email to