From f106299dd912c46bef7d312bb6c60256843ec13a Mon Sep 17 00:00:00 2001 From: lisyarus Date: Thu, 25 Feb 2021 11:24:28 +0300 Subject: [PATCH] UI box shape is all zeroes by default --- libs/ui/include/psemek/ui/box_shape.hpp | 2 +- libs/ui/source/default_element_factory.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ui/include/psemek/ui/box_shape.hpp b/libs/ui/include/psemek/ui/box_shape.hpp index 1d4f3332..03438506 100644 --- a/libs/ui/include/psemek/ui/box_shape.hpp +++ b/libs/ui/include/psemek/ui/box_shape.hpp @@ -8,7 +8,7 @@ namespace psemek::ui struct box_shape : shape { - geom::box box; + geom::box box{{{0.f, 0.f}, {0.f, 0.f}}}; box_shape() = default; diff --git a/libs/ui/source/default_element_factory.cpp b/libs/ui/source/default_element_factory.cpp index 6d402b07..df784584 100644 --- a/libs/ui/source/default_element_factory.cpp +++ b/libs/ui/source/default_element_factory.cpp @@ -51,7 +51,7 @@ namespace psemek::ui } private: - box_shape shape_{{{{0.f, 0.f}, {0.f, 0.f}}}}; + box_shape shape_; }; }