]> git.lyx.org Git - lyx.git/commitdiff
(J�rgen Spitzm�ller): bug fixes.
authorAngus Leeming <leeming@lyx.org>
Tue, 26 Nov 2002 10:53:37 +0000 (10:53 +0000)
committerAngus Leeming <leeming@lyx.org>
Tue, 26 Nov 2002 10:53:37 +0000 (10:53 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5720 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/FormTabular.C

index b2105f524c334c714c001d28c2e553d778b9d65b..dd3ad15ad80d8c7899b1fd35213b78204cd7302a 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-26  Jürgen Spitzmüller  <juergen.sp@t-online.de>
+
+       * FormTabular.C: correct lots of bugs in the setting/getting of
+       longtable options.
+
 2002-11-25  Angus Leeming  <leeming@lyx.org>
 
        * Dialogs_impl.h:
index 0e75b8700642a4774c3d3ece43b9333614e8d360..da022825ee3075ed3bc95f0e758be832eeea7446 100644 (file)
@@ -372,14 +372,14 @@ void FormTabular::update()
                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;
@@ -390,13 +390,13 @@ void FormTabular::update()
                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)
@@ -409,14 +409,14 @@ void FormTabular::update()
                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;
@@ -427,13 +427,13 @@ void FormTabular::update()
                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);
@@ -446,17 +446,17 @@ void FormTabular::update()
        } 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);
        }