From 27c6111ebf2e94af6e93c35879efd310861bb08e Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 23 Sep 2016 16:50:31 +0200 Subject: Add warning about primary component labels --- src/ConfigParser.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ConfigParser.cpp') diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp index 733b5df..6a359b7 100644 --- a/src/ConfigParser.cpp +++ b/src/ConfigParser.cpp @@ -507,6 +507,12 @@ void parse_ptree(boost::property_tree::ptree& pt, abort(); } + if (component->SCIdS == 0 and not component->label.long_label().empty()) { + etiLog.level(warn) << "Primary component " << component->uid << + " has label set. Since V2.1.1 of the specification, only secondary" + " components are allowed to have labels."; + } + if (figType != -1) { if (figType >= (1<<12)) { stringstream ss; -- cgit v1.2.3