From: Matthias Maier Date: Mon, 22 Apr 2013 21:10:36 +0000 (+0000) Subject: Fix a bug introduced with the mangling in r 29126 X-Git-Tag: v8.0.0~642 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c24c5c7f81787260a74bbacf33dc1d179d70d107;p=dealii.git Fix a bug introduced with the mangling in r 29126 git-svn-id: https://svn.dealii.org/trunk@29358 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/base/parameter_handler.cc b/deal.II/source/base/parameter_handler.cc index c1846a87cb..2b019ada2c 100644 --- a/deal.II/source/base/parameter_handler.cc +++ b/deal.II/source/base/parameter_handler.cc @@ -1083,8 +1083,8 @@ ParameterHandler::mangle (const std::string &s) static const std::string allowed_characters ("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"); - if (mangle_whole_string - || + if ((! mangle_whole_string) + && (allowed_characters.find (s[i]) != std::string::npos)) u.push_back (s[i]); else