Skip to content
Extraits de code Groupes Projets
Valider 27144a7e rédigé par Thomas Goyne's avatar Thomas Goyne
Parcourir les fichiers

Fix min/max for lua intedit controls

Originally committed to SVN as r6523.
parent 24fbf258
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -285,10 +285,10 @@ namespace Automation4 {
IntEdit(lua_State *L)
: Edit(L)
, value(get_field(L, "value", 0))
, min(get_field(L, "min", 0))
, max(get_field(L, "max", 0))
, min(get_field(L, "min", INT_MIN))
, max(get_field(L, "max", INT_MAX))
{
if (min <= max) {
if (min >= max) {
max = INT_MAX;
min = INT_MIN;
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter