Skip to content

Commit 41ad0f4

Browse files
committedAug 3, 2019
Fix negative offsets not being supported by container[]
1 parent 3ad9a8f commit 41ad0f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/gui/guiFormSpecMenu.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@ void GUIFormSpecMenu::parseContainer(parserData* data, const std::string &elemen
325325
parts[1] = parts[1].substr(0, parts[1].find(';'));
326326

327327
container_stack.push(pos_offset);
328-
pos_offset.X += MYMAX(0, stof(parts[0]));
329-
pos_offset.Y += MYMAX(0, stof(parts[1]));
328+
pos_offset.X += stof(parts[0]);
329+
pos_offset.Y += stof(parts[1]);
330330
return;
331331
}
332332
errorstream<< "Invalid container start element (" << parts.size() << "): '" << element << "'" << std::endl;

0 commit comments

Comments
 (0)
Please sign in to comment.