* A bug in widget system is fixed 4.x-dev

Mon, 01 Nov 2021 06:57:22 +0200

author
cemkalyoncu
date
Mon, 01 Nov 2021 06:57:22 +0200
branch
4.x-dev
changeset 1753
b473f5a6ce85
parent 1752
1a433508cd6c
child 1754
d3375bf8ea93

* A bug in widget system is fixed

Source/Gorgon/UI/Widget.h file | annotate | diff | comparison | revisions
--- a/Source/Gorgon/UI/Widget.h	Sun Oct 31 20:31:10 2021 +0200
+++ b/Source/Gorgon/UI/Widget.h	Mon Nov 01 06:57:22 2021 +0200
@@ -349,8 +349,8 @@
         bool focus   = false;
         bool floating= false;
 
-        UnitPoint location;
-        UnitSize  size;
+        UnitPoint location = {0, 0};
+        UnitSize  size = {-1, -1};
         
         /// Never call this function
         virtual void hide() = 0;

mercurial