From 7e552c30c1fbb56b35b169c47e2cee9f5af06dd4 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 7 Jan 2003 13:28:03 +0000 Subject: [PATCH] fix bug 572 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH-1_2_X@5910 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/xforms/ChangeLog | 4 ++++ src/frontends/xforms/FormTabular.C | 12 ++++++++---- status.12x | 3 +++ 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index 7ac7cfcffc..d512db43b0 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,7 @@ +2003-01-07 Juergen Spitzmueller + + * FormTabular.C: fix bug 572. + 2002-12-18 Juergen Spitzmueller * xforms_helpers.C: (updateWidgetsFromLength) diff --git a/src/frontends/xforms/FormTabular.C b/src/frontends/xforms/FormTabular.C index 5b58392bb0..dfc76d7627 100644 --- a/src/frontends/xforms/FormTabular.C +++ b/src/frontends/xforms/FormTabular.C @@ -232,12 +232,16 @@ void FormTabular::update() } pwidth = tabular->GetMColumnPWidth(cell); align = tabular->GetAlignment(cell); - if (!pwidth.zero() || (align == LYX_ALIGN_LEFT)) - fl_set_button(cell_options_->radio_align_left, 1); - else if (align == LYX_ALIGN_RIGHT) + // set the horiz. alignment, default is left here + fl_set_button(cell_options_->radio_align_left, 0); + fl_set_button(cell_options_->radio_align_right, 0); + fl_set_button(cell_options_->radio_align_center, 0); + if (!pwidth.zero() || (align == LYX_ALIGN_RIGHT)) fl_set_button(cell_options_->radio_align_right, 1); - else + else if (align == LYX_ALIGN_CENTER) fl_set_button(cell_options_->radio_align_center, 1); + else + fl_set_button(cell_options_->radio_align_left, 1); align = tabular->GetVAlignment(cell); fl_set_button(cell_options_->radio_valign_top, 0); diff --git a/status.12x b/status.12x index 9e27170631..0124fae329 100644 --- a/status.12x +++ b/status.12x @@ -29,6 +29,9 @@ What's new - fix problem where it was not possible to force some values to 0 in custom margins +- fix bug where horizontal alignment would be reset automatically to + "left" in the tabular dialog. + - fix functions word-find-forward and word-find-backward, which meaning was inverted