From 1bdfd69c44d022620d23c2a5bfe4f410a882d714 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Tue, 26 Nov 2002 10:53:37 +0000 Subject: [PATCH] =?UTF-8?q?(J=EF=BF=BDrgen=20Spitzm=EF=BF=BDller):=20bug?= =?UTF-8?q?=20fixes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5720 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/xforms/ChangeLog | 5 +++++ src/frontends/xforms/FormTabular.C | 32 +++++++++++++++--------------- 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index b2105f524c..dd3ad15ad8 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,8 @@ +2002-11-26 Jürgen Spitzmüller + + * FormTabular.C: correct lots of bugs in the setting/getting of + longtable options. + 2002-11-25 Angus Leeming * Dialogs_impl.h: diff --git a/src/frontends/xforms/FormTabular.C b/src/frontends/xforms/FormTabular.C index 0e75b87006..da022825ee 100644 --- a/src/frontends/xforms/FormTabular.C +++ b/src/frontends/xforms/FormTabular.C @@ -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); }