From 27144a7ef74ebe8be3773545d31789952145c54e Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 28 Feb 2012 01:23:15 +0000 Subject: [PATCH] Fix min/max for lua intedit controls Originally committed to SVN as r6523. --- aegisub/src/auto4_lua_dialog.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aegisub/src/auto4_lua_dialog.cpp b/aegisub/src/auto4_lua_dialog.cpp index 884042390..289e816d4 100644 --- a/aegisub/src/auto4_lua_dialog.cpp +++ b/aegisub/src/auto4_lua_dialog.cpp @@ -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; }