From 3f8bed14ef72231c09e6f74f2e2938a4d4bf4819 Mon Sep 17 00:00:00 2001 From: Yan Pujante Date: Mon, 20 Feb 2023 05:27:58 -0800 Subject: [PATCH] fixed compilation issue on Windows --- src/cpp/re/edit/Widget.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cpp/re/edit/Widget.h b/src/cpp/re/edit/Widget.h index 8f7087d..f549de1 100644 --- a/src/cpp/re/edit/Widget.h +++ b/src/cpp/re/edit/Widget.h @@ -70,8 +70,7 @@ class Widget : public Editable constexpr ImVec2 getBottomRight() const { return fGraphics->getBottomRight(); } inline ImVec2 getSize() const { return fGraphics->getSize(); } void setPosition(ImVec2 const &iPosition); - constexpr void setPositionFromCenter(ImVec2 const &iCenterPosition) { - setPositionAction(iCenterPosition - getSize() / 2.0f); } + inline void setPositionFromCenter(ImVec2 const &iCenterPosition) { setPositionAction(iCenterPosition - getSize() / 2.0f); } constexpr bool isSelected() const { return fSelected; } constexpr void select() { fSelected = true; }