Browse Source

fixed guard overwrite

overwrites
Thomas Knoll 10 months ago
committed by sp
parent
commit
073e1b28e5
  1. 4
      util/Grid.cpp

4
util/Grid.cpp

@ -115,6 +115,8 @@ void Grid::applyOverwrites(std::string& str, std::vector<Configuration>& configu
search = config.identifier_; search = config.identifier_;
} else if (config.type_ == ConfigType::UpdateOnly) { } else if (config.type_ == ConfigType::UpdateOnly) {
search = config.identifier_; search = config.identifier_;
} else if (config.type_ == ConfigType::GuardOnly) {
search = config.identifier_;
} }
else if (config.type_ == ConfigType::Constant) { else if (config.type_ == ConfigType::Constant) {
search = config.identifier_; search = config.identifier_;
@ -128,7 +130,7 @@ void Grid::applyOverwrites(std::string& str, std::vector<Configuration>& configu
if (config.type_ == ConfigType::GuardOnly) { if (config.type_ == ConfigType::GuardOnly) {
start_pos += search.length();
start_pos += search.length();
} else if (config.type_ == ConfigType::UpdateOnly) { } else if (config.type_ == ConfigType::UpdateOnly) {
start_pos = str.find("->", start_pos) + 2; start_pos = str.find("->", start_pos) + 2;
} }

Loading…
Cancel
Save