From: maier Date: Mon, 22 Apr 2013 21:10:36 +0000 (+0000) Subject: Fix a bug introduced with the mangling in r 29126 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89c0db01342232b558ab99ad872d83a90af2cc89;p=dealii-svn.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