Skip to content

Commit

Permalink
Fix negative offsets not being supported by container[]
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed Aug 3, 2019
1 parent 3ad9a8f commit 41ad0f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/guiFormSpecMenu.cpp
Expand Up @@ -325,8 +325,8 @@ void GUIFormSpecMenu::parseContainer(parserData* data, const std::string &elemen
parts[1] = parts[1].substr(0, parts[1].find(';'));

container_stack.push(pos_offset);
pos_offset.X += MYMAX(0, stof(parts[0]));
pos_offset.Y += MYMAX(0, stof(parts[1]));
pos_offset.X += stof(parts[0]);
pos_offset.Y += stof(parts[1]);
return;
}
errorstream<< "Invalid container start element (" << parts.size() << "): '" << element << "'" << std::endl;
Expand Down

0 comments on commit 41ad0f4

Please sign in to comment.