diff --git a/src/miral/window_info_internal.cpp b/src/miral/window_info_internal.cpp index 34ce76860e..ab9619cdcd 100644 --- a/src/miral/window_info_internal.cpp +++ b/src/miral/window_info_internal.cpp @@ -55,9 +55,9 @@ miral::Height const miral::default_max_height{std::numeric_limits::max()}; miral::DeltaX const miral::default_width_inc{1}; miral::DeltaY const miral::default_height_inc{1}; miral::WindowInfo::AspectRatio const miral::default_min_aspect_ratio{ - clamp(WindowInfo::AspectRatio{0U, std::numeric_limits::max()})}; + clamp(WindowInfo::AspectRatio{1U, std::numeric_limits::max()})}; miral::WindowInfo::AspectRatio const miral::default_max_aspect_ratio{ - clamp(WindowInfo::AspectRatio{std::numeric_limits::max(), 0U})}; + clamp(WindowInfo::AspectRatio{std::numeric_limits::max(), 1U})}; miral::WindowInfo::Self::Self(Window window, WindowSpecification const& params) : window{window},