diff --git a/src/frontends/xforms/ChangeLog b/src/frontends/xforms/ChangeLog index dee32eaca8..a501337736 100644 --- a/src/frontends/xforms/ChangeLog +++ b/src/frontends/xforms/ChangeLog @@ -1,3 +1,8 @@ +2001-04-20 Jean-Marc Lasgouttes + + * xforms_helpers.C (formatted): do not use string::substr(1) on a + string of length 1 ! + 2001-04-16 Allan Rae * xforms_helpers.C (formatted): diff --git a/src/frontends/xforms/xforms_helpers.C b/src/frontends/xforms/xforms_helpers.C index ad545ce042..9f714c78c6 100644 --- a/src/frontends/xforms/xforms_helpers.C +++ b/src/frontends/xforms/xforms_helpers.C @@ -71,7 +71,7 @@ string formatted(string const & sin, int w, int size, int style) char c = word[0]; if (c == '\n') { sout += line + '\n'; - word = word.substr(1); + word.erase(0,1); line_plus_word.erase(); line.erase(); }