]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix a bug introduced with the mangling in r 29126
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 22 Apr 2013 21:10:36 +0000 (21:10 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 22 Apr 2013 21:10:36 +0000 (21:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@29358 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/parameter_handler.cc

index c1846a87cb89d2f5330275676d4f8edc40c9ee23..2b019ada2c3aff87242fe5911b3100e1c1e66135 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.