diff --git a/crlcore/etc/display.xml b/crlcore/etc/display.xml index 2bcc8580..2d77c1bb 100644 --- a/crlcore/etc/display.xml +++ b/crlcore/etc/display.xml @@ -41,7 +41,7 @@ - + diff --git a/crlcore/src/ccore/GraphicsParser.cpp b/crlcore/src/ccore/GraphicsParser.cpp index b238a395..01289133 100644 --- a/crlcore/src/ccore/GraphicsParser.cpp +++ b/crlcore/src/ccore/GraphicsParser.cpp @@ -68,6 +68,7 @@ namespace CRL { int border = 0; float threshold = 1.0; Name drawingStyleName = "unnamed"; + bool goMatched = true; QString value; value = _reader->attributes().value("name").toString(); @@ -100,15 +101,20 @@ namespace CRL { if ( !value.isEmpty() ) threshold = value.toFloat (); + value = _reader->attributes().value("goMatched").toString().toLower(); + if ( value == "true" ) goMatched = true; + else if ( value == "false" ) goMatched = false; + _displayStyle->addDrawingStyle ( _drawingGroupName - , drawingStyleName - , pattern - , red - , green - , blue - , border - , threshold - ); + , drawingStyleName + , pattern + , red + , green + , blue + , border + , threshold + , goMatched + ); parseNoChilds (); }