From: sairajat Date: Tue, 7 Feb 2017 21:17:53 +0000 (-0500) Subject: Bug Fix in Patterns::Selection X-Git-Tag: v8.5.0-rc1~118^2~6 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cf43587f7e0aaebdf04181285c231f967b06365;p=dealii.git Bug Fix in Patterns::Selection --- diff --git a/source/base/parameter_handler.cc b/source/base/parameter_handler.cc index a0d6c22ead..128e2410b3 100644 --- a/source/base/parameter_handler.cc +++ b/source/base/parameter_handler.cc @@ -469,7 +469,7 @@ namespace Patterns std::string tmp(sequence); // remove whitespace at beginning while ((tmp.length() != 0) && (std::isspace (tmp[0]))) - tmp.erase (0,1); + tmp.erase (0,1); // check the different possibilities while (tmp.find('|') != std::string::npos) diff --git a/tests/parameter_handler/parameter_handler_3_with_space.cc b/tests/parameter_handler/parameter_handler_3_with_space.cc index ebff780d54..f16ab06ff2 100644 --- a/tests/parameter_handler/parameter_handler_3_with_space.cc +++ b/tests/parameter_handler/parameter_handler_3_with_space.cc @@ -15,7 +15,7 @@ -// test the output generated by ParameterHandler::print_parameters(Text) +// Like parameter_handler_03, but use a MultipleSelection pattern that starts with a space; eat that space #include "../tests.h" #include