فهرست منبع

LibCore: Fix enum copy mistakes in REGISTER_TEXT_ALIGNMENT_PROPERTY

kleines Filmröllchen 3 سال پیش
والد
کامیت
8fe899e90d
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      Userland/Libraries/LibCore/Object.h

+ 2 - 2
Userland/Libraries/LibCore/Object.h

@@ -378,10 +378,10 @@ T* Object::find_descendant_of_type_named(String const& name) requires IsBaseOf<O
         { Gfx::TextAlignment::Center, "Center" },                       \
         { Gfx::TextAlignment::CenterLeft, "CenterLeft" },               \
         { Gfx::TextAlignment::CenterRight, "CenterRight" },             \
-        { Gfx::TextAlignment::TopLeft, "TopCenter" },                   \
+        { Gfx::TextAlignment::TopCenter, "TopCenter" },                 \
         { Gfx::TextAlignment::TopLeft, "TopLeft" },                     \
         { Gfx::TextAlignment::TopRight, "TopRight" },                   \
-        { Gfx::TextAlignment::TopLeft, "BottomCenter" },                \
+        { Gfx::TextAlignment::BottomCenter, "BottomCenter" },           \
         { Gfx::TextAlignment::BottomLeft, "BottomLeft" },               \
         { Gfx::TextAlignment::BottomRight, "BottomRight" })