From: Angus Leeming Date: Thu, 14 Feb 2002 17:43:53 +0000 (+0000) Subject: Another bugfix from Herbert. X-Git-Tag: 1.6.10~19853 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9e5716b3d0cdbd79a9daa8294edbf8bf7c007aa5;p=features.git Another bugfix from Herbert. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3542 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index e003e0657f..5257a399fa 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,7 @@ +2002-02-14 Herbert Voss + + * xforms_helpers.h: fix bug with "?%" units + 2002-02-14 Rob Lahaye * forms/form_graphics.fd: * form_graphics.C: minor layout changes, such as stretching all diff --git a/src/frontends/xforms/xforms_helpers.C b/src/frontends/xforms/xforms_helpers.C index 39dfd00a0e..ea150ba2e2 100644 --- a/src/frontends/xforms/xforms_helpers.C +++ b/src/frontends/xforms/xforms_helpers.C @@ -285,7 +285,8 @@ void updateWidgetsFromLength(FL_OBJECT * input, FL_OBJECT * choice, ostringstream buffer; buffer << len.value(); fl_set_input(input, buffer.str().c_str()); - fl_set_choice_text(choice, stringFromUnit(len.unit())); + fl_set_choice_text(choice, + subst(stringFromUnit(len.unit()),"%","%%").c_str()); } } #endif