diff --git a/ivi-layermanagement-examples/LayerManagerControl/src/Expression.cpp b/ivi-layermanagement-examples/LayerManagerControl/src/Expression.cpp index a08dc8f7..af61cd40 100644 --- a/ivi-layermanagement-examples/LayerManagerControl/src/Expression.cpp +++ b/ivi-layermanagement-examples/LayerManagerControl/src/Expression.cpp @@ -213,6 +213,12 @@ ExpressionList Expression::getNextExpressionClosure(string text) { Expression* expr = *iter; + if((expr->mName).compare("") && + (expr->mName).compare("")) + { + transform(text.begin(), text.end(), text.begin(), ::tolower); + } + if (expr->isVar()) { nextClosure.push_back(expr); diff --git a/ivi-layermanagement-examples/LayerManagerControl/src/ExpressionInterpreter.cpp b/ivi-layermanagement-examples/LayerManagerControl/src/ExpressionInterpreter.cpp index 336507e7..d043dcda 100644 --- a/ivi-layermanagement-examples/LayerManagerControl/src/ExpressionInterpreter.cpp +++ b/ivi-layermanagement-examples/LayerManagerControl/src/ExpressionInterpreter.cpp @@ -83,7 +83,6 @@ CommandResult ExpressionInterpreter::interpretCommand(string userInput) while (result == CommandSuccess && !ss.eof()) { ss >> text; - transform(text.begin(), text.end(), text.begin(), ::tolower); ExpressionList::const_iterator iter = currentState.begin(); ExpressionList::const_iterator end = currentState.end();