From cba7f1a8e68c56b61372953e60b5f44794ddd218 Mon Sep 17 00:00:00 2001 From: jatin Date: Mon, 30 Sep 2024 13:52:34 -0700 Subject: [PATCH] chowdsp::Rectangle: fix naming error --- .../chowdsp_core/DataStructures/chowdsp_GraphicsHelpers.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/common/chowdsp_core/DataStructures/chowdsp_GraphicsHelpers.h b/modules/common/chowdsp_core/DataStructures/chowdsp_GraphicsHelpers.h index c4518de34..602773248 100644 --- a/modules/common/chowdsp_core/DataStructures/chowdsp_GraphicsHelpers.h +++ b/modules/common/chowdsp_core/DataStructures/chowdsp_GraphicsHelpers.h @@ -357,16 +357,16 @@ struct Rectangle [[nodiscard]] constexpr Rectangle removeFromTop (T amountToRemove) noexcept { const Rectangle r { position.x, position.y, width, juce::jmin (amountToRemove, height) }; - position.y += r.h; - height -= r.h; + position.y += r.height; + height -= r.height; return r; } [[nodiscard]] constexpr Rectangle removeFromLeft (T amountToRemove) noexcept { const Rectangle r { position.x, position.y, juce::jmin (amountToRemove, width), height }; - position.x += r.w; - width -= r.w; + position.x += r.width; + width -= r.width; return r; }