From 344e075dc5a5cc0ec496bf26af818d020fe4db75 Mon Sep 17 00:00:00 2001 From: Jose Diaz Date: Mon, 22 Apr 2024 22:29:06 +0200 Subject: [PATCH] Rename gap width variable for clarity in PresetPanel --- libs/tote_bag/juce_gui/components/panels/PresetPanel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/tote_bag/juce_gui/components/panels/PresetPanel.cpp b/libs/tote_bag/juce_gui/components/panels/PresetPanel.cpp index cbc8f8a6..b4f3ac2f 100644 --- a/libs/tote_bag/juce_gui/components/panels/PresetPanel.cpp +++ b/libs/tote_bag/juce_gui/components/panels/PresetPanel.cpp @@ -130,8 +130,8 @@ void PresetPanel::resized() // This is used to set the gap between load button and previous button as well // as next button and preset display box - const auto loadPrevBoxGapWidth = juce::roundToInt (presetBoundsWidth * .016f); - presetBounds.removeFromLeft (loadPrevBoxGapWidth); + const auto prevNextButtonAreaGapWidth = juce::roundToInt (presetBoundsWidth * .016f); + presetBounds.removeFromLeft (prevNextButtonAreaGapWidth); const auto prevNextButtonHeight = juce::roundToInt (presetBoundsHeight * .2f); const auto prevNextButtonY = presetBoundsCentreY - prevNextButtonHeight / 2; @@ -148,7 +148,7 @@ void PresetPanel::resized() .withY (prevNextButtonY) .withHeight (prevNextButtonHeight)); - presetBounds.removeFromLeft (loadPrevBoxGapWidth); + presetBounds.removeFromLeft (prevNextButtonAreaGapWidth); const auto presetDisplayHeight = juce::roundToInt (presetBoundsHeight * .85f); const auto presetDisplayY = presetBoundsCentreY - presetDisplayHeight / 2;