瀏覽代碼

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" })