diff --git a/src/plugins/lua/luaqttypes.cpp b/src/plugins/lua/luaqttypes.cpp index 2ae21361673..7bc1144cf29 100644 --- a/src/plugins/lua/luaqttypes.cpp +++ b/src/plugins/lua/luaqttypes.cpp @@ -61,8 +61,7 @@ QRect sol_lua_get(sol::types, lua_State *L, int index, sol::stack::record if (table.size() == 2) return QRect(table.get(1), table.get(2)); - if (table.size() == 4) - return QRect(table.get(1), table.get(2), table.get(3), table.get(4)); + return QRect(table.get(1), table.get(2), table.get(3), table.get(4)); } int sol_lua_push(sol::types, lua_State *L, const QRect &value)