diff options
author | Sven Gothel <[email protected]> | 2023-09-04 05:40:32 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-09-04 06:28:29 +0200 |
commit | ba1c13b4eb4db2f15d2ee72d768748ab1f5d5639 (patch) | |
tree | e4a7167d49a5fc12e5fbf2796ee6078ed21ddc59 | |
parent | 4ca9efd6759856f46eb0cedde28998bc2b68d2cb (diff) |
GraphUI Margin, Alignment: Reuse ctor for default-ctor
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/layout/Margin.java | 2 | ||||
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/layout/Padding.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/layout/Margin.java b/src/graphui/classes/com/jogamp/graph/ui/layout/Margin.java index fde7217b6..240053cb5 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/layout/Margin.java +++ b/src/graphui/classes/com/jogamp/graph/ui/layout/Margin.java @@ -68,7 +68,7 @@ public class Margin { * Ctor w/ zero values */ public Margin() { - top = 0f; right = 0f; bottom = 0f; left = 0f; bits = 0; + this(0f); } /** diff --git a/src/graphui/classes/com/jogamp/graph/ui/layout/Padding.java b/src/graphui/classes/com/jogamp/graph/ui/layout/Padding.java index 1d5eca002..c0fac409c 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/layout/Padding.java +++ b/src/graphui/classes/com/jogamp/graph/ui/layout/Padding.java @@ -48,7 +48,7 @@ public class Padding { * Ctor w/ zero values */ public Padding() { - top = 0f; right = 0f; bottom = 0f; left = 0f; + this(0f); } /** |