From d2995f7517de1aff865734949c32405266301fe5 Mon Sep 17 00:00:00 2001 From: tetektoza Date: Sun, 1 Oct 2023 20:37:41 +0200 Subject: [PATCH] LibGUI: Add missing constructor to UISize class for fixed_size property This patch adds a missing constructor to UISize class for fixed_size property, so the property can take an array if user specified it in .gml file. --- Userland/Libraries/LibGUI/UIDimensions.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Userland/Libraries/LibGUI/UIDimensions.h b/Userland/Libraries/LibGUI/UIDimensions.h index ef4eb9864b4..8ccf0cd40ea 100644 --- a/Userland/Libraries/LibGUI/UIDimensions.h +++ b/Userland/Libraries/LibGUI/UIDimensions.h @@ -208,6 +208,11 @@ public: { } + UISize(Array size) + : UISize(size[0], size[1]) + { + } + UISize(SpecialDimension special) : Gfx::Size(UIDimension { special }, UIDimension { special }) {