diff --git a/Applications/FileIO/GocadIO/GocadAsciiReader.cpp b/Applications/FileIO/GocadIO/GocadAsciiReader.cpp index 6c031b78f3177142142a750953fc9ddae200bf99..447745b7900388b55ab79f9468cb952fa6de1d54 100644 --- a/Applications/FileIO/GocadIO/GocadAsciiReader.cpp +++ b/Applications/FileIO/GocadIO/GocadAsciiReader.cpp @@ -295,10 +295,12 @@ bool parseNodes(std::ifstream& in, std::stringstream sstr(line); if (line.substr(0, 4) == "VRTX" && t != NodeType::PVRTX) { + t = NodeType::VRTX; nodes.push_back(createNode(sstr)); } else if (line.substr(0, 5) == "PVRTX" && t != NodeType::VRTX) { + t = NodeType::PVRTX; nodes.push_back(createNode(sstr)); for (std::string const& name : array_names) {