From f721aeb097bc5c6be69e270192480b8143b2d7e9 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 26 May 2022 23:04:41 -0400 Subject: Fix parsing module position from configuration file --- src/Configuration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Configuration.cpp b/src/Configuration.cpp index 8b5a47b..42217d4 100644 --- a/src/Configuration.cpp +++ b/src/Configuration.cpp @@ -265,10 +265,10 @@ Configuration::load() std::cerr << "error: color for unknown port type `" << type_name << "'" << std::endl; } - } else if (key == "module_position" || key[0] == '\"') { + } else if (key == "module_position") { Coord loc; std::string name; - file.ignore(1, '\"'); + file.ignore(std::numeric_limits::max(), '\"'); std::getline(file, name, '\"'); SignalDirection type = SignalDirection::input; -- cgit v1.2.1