]> git.lyx.org Git - features.git/commitdiff
Another bugfix from Herbert.
authorAngus Leeming <leeming@lyx.org>
Thu, 14 Feb 2002 17:43:53 +0000 (17:43 +0000)
committerAngus Leeming <leeming@lyx.org>
Thu, 14 Feb 2002 17:43:53 +0000 (17:43 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3542 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/xforms_helpers.C

index e003e0657f96154009809a87ca653b44cbe9a204..5257a399fa604b27144adcef5d242c8a982cd738 100644 (file)
@@ -1,3 +1,7 @@
+2002-02-14  Herbert Voss  <voss@lyx.org>
+
+       * xforms_helpers.h: fix bug with "?%" units
+
 2002-02-14  Rob Lahaye  <lahaye@users.sourceforge.net>
        * forms/form_graphics.fd:
        * form_graphics.C: minor layout changes, such as stretching all
index 39dfd00a0e4a167fe117632c208d55e1f19e9bbc..ea150ba2e27fea97877e1408eba54470995c0a75 100644 (file)
@@ -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