From: James Turner Date: Sat, 28 Apr 2012 21:39:55 +0000 (+0100) Subject: NavDisplay: ignore case when matching symbol types in rules. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=15724a6a446317f83d429670ebb0e2204c72bdb5;p=flightgear.git NavDisplay: ignore case when matching symbol types in rules. --- diff --git a/src/Instrumentation/NavDisplay.cxx b/src/Instrumentation/NavDisplay.cxx index 5c6720ae1..015f8ff59 100644 --- a/src/Instrumentation/NavDisplay.cxx +++ b/src/Instrumentation/NavDisplay.cxx @@ -27,6 +27,7 @@ #include #include +#include #include #include @@ -197,6 +198,7 @@ public: } type = node->getStringValue("type"); + boost::to_lower(type); SGPropertyNode* enableNode = node->getChild("enable"); if (enableNode) { enable.reset(sgReadCondition(fgGetNode("/"), enableNode)); @@ -1103,6 +1105,7 @@ void NavDisplay::foundPositionedItem(FGPositioned* pos) } string type = FGPositioned::nameForType(pos->type()); + //boost::to_lower(type); if (!anyRuleForType(type)) { return; // not diplayed at all, we're done }