From e8cb9812b7454aafe6c83713c8b820b15ccbe039 Mon Sep 17 00:00:00 2001
From: Franck Dary <franck.dary@lis-lab.fr>
Date: Tue, 25 Feb 2020 11:15:27 +0100
Subject: [PATCH] Fixed printForDebug when head is _

---
 reading_machine/src/Config.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/reading_machine/src/Config.cpp b/reading_machine/src/Config.cpp
index 8ced9da..52129ed 100644
--- a/reading_machine/src/Config.cpp
+++ b/reading_machine/src/Config.cpp
@@ -146,7 +146,7 @@ void Config::printForDebug(FILE * dest) const
       std::string toPrintCol = colContent;
       try
       {
-        if (getColName(i) == headColName)
+        if (getColName(i) == headColName && toPrintCol != "_")
           if (toPrintCol != "0")
             toPrintCol = getAsFeature(idColName, std::stoi(toPrintCol));
       } catch(std::exception & e) {util::myThrow(fmt::format("toPrintCol='{}' {}", toPrintCol, e.what()));}
-- 
GitLab