diff options
author | David Robillard <d@drobilla.net> | 2022-05-26 23:04:41 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-05-26 23:06:12 -0400 |
commit | f721aeb097bc5c6be69e270192480b8143b2d7e9 (patch) | |
tree | 8e08427189addb96a57817161f9a2af6b026780c /src | |
parent | 6553f2f2340df4ae0de26d2145c4dcbf66d4536a (diff) | |
download | patchage-f721aeb097bc5c6be69e270192480b8143b2d7e9.tar.gz patchage-f721aeb097bc5c6be69e270192480b8143b2d7e9.tar.bz2 patchage-f721aeb097bc5c6be69e270192480b8143b2d7e9.zip |
Fix parsing module position from configuration file
Diffstat (limited to 'src')
-rw-r--r-- | src/Configuration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<std::streamsize>::max(), '\"'); std::getline(file, name, '\"'); SignalDirection type = SignalDirection::input; |