From a71fd8a770d7c9f8296506e9ab408643e07bbca1 Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Fri, 23 Aug 2024 07:58:57 +0200 Subject: [PATCH] Lua: Remove unnecessary if Change-Id: Id19de054990c4d8c2b4120a5927223638d5ed811 Reviewed-by: Cristian Adam --- src/plugins/lua/luaqttypes.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)