]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
fixed bug in MultipleSelection Class.
authorbrian <brian@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 14 May 2003 17:09:44 +0000 (17:09 +0000)
committerbrian <brian@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 14 May 2003 17:09:44 +0000 (17:09 +0000)
git-svn-id: https://svn.dealii.org/trunk@7646 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/parameter_handler.cc

index 3ae2f1b6fecf9b12b334124824e537ff87379067..22f3f6a1e3852e83f0ece7bc6a19e7f6094e0f5b 100644 (file)
@@ -321,9 +321,9 @@ namespace Patterns
                                     // first split the input list
     while (tmp.length() != 0)
       {
-       std::string name;
+        std::string name;
        name = tmp;
-      
+
        if (name.find(",") != std::string::npos)
          {
            name.erase (name.find(","), std::string::npos);
@@ -335,6 +335,7 @@ namespace Patterns
        while ((name.length() != 0) &&
               (name[0] == ' '))
          name.erase (0,1);
+
        while (name[name.length()-1] == ' ')
          name.erase (name.length()-1, 1);
 
@@ -421,7 +422,7 @@ namespace Patterns
        if (name.find(",") != std::string::npos)
          {
            name.erase (name.find(","), std::string::npos);
-           tmp.erase (0, test_string_list.find(",")+1);
+           tmp.erase (0, tmp.find(",")+1);
          }
        else
          tmp = "";

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.