Skip to content

Commit

Permalink
Fixed wrong parameter in GrowHorizontalLayout::create
Browse files Browse the repository at this point in the history
  • Loading branch information
texus committed Dec 19, 2024
1 parent a45fe43 commit f631a4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/TGUI/Widgets/GrowHorizontalLayout.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ TGUI_MODULE_EXPORT namespace tgui
///
/// @return The new horizontal layout
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
TGUI_NODISCARD static GrowHorizontalLayout::Ptr create(const Layout& width = {RelativeValue(1)});
TGUI_NODISCARD static GrowHorizontalLayout::Ptr create(const Layout& height = {RelativeValue(1)});

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @brief Makes a copy of another layout
Expand Down
4 changes: 2 additions & 2 deletions src/Widgets/GrowHorizontalLayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ namespace tgui

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

GrowHorizontalLayout::Ptr GrowHorizontalLayout::create(const Layout& width)
GrowHorizontalLayout::Ptr GrowHorizontalLayout::create(const Layout& height)
{
auto layout = std::make_shared<GrowHorizontalLayout>();
layout->setWidth(width);
layout->setHeight(height);
return layout;
}

Expand Down

0 comments on commit f631a4f

Please sign in to comment.