diff --git a/headers/enduro2d/high/components/label.hpp b/headers/enduro2d/high/components/label.hpp index 4c35aac6..d2c47a59 100644 --- a/headers/enduro2d/high/components/label.hpp +++ b/headers/enduro2d/high/components/label.hpp @@ -49,10 +49,10 @@ namespace e2d label& tint(const color32& value) noexcept; [[nodiscard]] const color32& tint() const noexcept; - label& haligh(haligns value) noexcept; + label& halign(haligns value) noexcept; [[nodiscard]] haligns halign() const noexcept; - label& valigh(valigns value) noexcept; + label& valign(valigns value) noexcept; [[nodiscard]] valigns valign() const noexcept; label& leading(f32 value) noexcept; @@ -207,7 +207,7 @@ namespace e2d return tint_; } - inline label& label::haligh(haligns value) noexcept { + inline label& label::halign(haligns value) noexcept { halign_ = value; return *this; } @@ -216,7 +216,7 @@ namespace e2d return halign_; } - inline label& label::valigh(valigns value) noexcept { + inline label& label::valign(valigns value) noexcept { valign_ = value; return *this; } diff --git a/sources/enduro2d/high/components/label.cpp b/sources/enduro2d/high/components/label.cpp index 93c6ae6b..df35d322 100644 --- a/sources/enduro2d/high/components/label.cpp +++ b/sources/enduro2d/high/components/label.cpp @@ -112,7 +112,7 @@ namespace e2d the().error("LABEL: Incorrect formatting of 'halign' property"); return false; } - component.haligh(halign); + component.halign(halign); } if ( ctx.root.HasMember("valign") ) { @@ -121,7 +121,7 @@ namespace e2d the().error("LABEL: Incorrect formatting of 'valign' property"); return false; } - component.valigh(valign); + component.valign(valign); } if ( ctx.root.HasMember("leading") ) {