From 4402025b1a1fa840cb345d0d6e3d30f9db7ad811 Mon Sep 17 00:00:00 2001
From: Xavier Robin <xavier.robin@unibas.ch>
Date: Fri, 8 Dec 2023 13:13:35 +0100
Subject: [PATCH] fix: TypeError in Resize(): expects int.

---
 modules/gui/pymod/scene/uniform_color_widget.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/pymod/scene/uniform_color_widget.py b/modules/gui/pymod/scene/uniform_color_widget.py
index 4f4f8ccc0..d6021e0af 100644
--- a/modules/gui/pymod/scene/uniform_color_widget.py
+++ b/modules/gui/pymod/scene/uniform_color_widget.py
@@ -104,7 +104,7 @@ class UniformColorWidget(QtWidgets.QWidget):
       entity.Apply(ufco)
     
   def resizeEvent(self, event):
-    self.color_select_widget_.SetSize(self.width()/2,self.height()/2)
+    self.color_select_widget_.SetSize(int(self.width()/2),int(self.height()/2))
     
   def GetText(self):
     return self.text_
-- 
GitLab